GCC with -Woverflow will warn in _set_real_with_hex because of integer overflow in assigning the temp value from a constant expression. The code causing the warning isn't run, but since it's compiled in, using the casts will tell the compiler that we know what we're doing.