Skip to content
Prev Previous commit
Next Next commit
Make conversion to uint32_t of negative constant explicit
IAR generates warning Pe068 'integer conversion resulted in a change of
sign'.
  • Loading branch information
Ben Avison committed Sep 13, 2022
commit 6c612fda048ac0f9f16cb025979d5eacb0111986
2 changes: 1 addition & 1 deletion interp/hello_interp/hello_interp.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ void simple_blend2() {
interp_config_set_blend(&cfg, true);
interp_set_config(interp0, 0, &cfg);

interp0->base[0] = -1000;
interp0->base[0] = (uint32_t) -1000;
interp0->base[1] = 1000;

puts("signed:");
Expand Down