cppcheck reported that 0xdeadbeef + 8 yielded signed integer overflow.
This is probably harmless, as long as the compiler doesn't do something
really strange, but it's even better if we just ensure that this
arithmetic is done as unsigned.
Reported by John Darrington.
uint32_t tmp[2];
uint32_t a, b, c;
uint32_t tmp[2];
uint32_t a, b, c;
- a = b = c = 0xdeadbeef + 8 + basis;
+ a = b = c = 0xdeadbeefU + 8 + basis;
memcpy (tmp, &d, 8);
a += tmp[0];
memcpy (tmp, &d, 8);
a += tmp[0];