For the following code
static inline float fix2float(int64_t f)
{
return (float)f / (1 << 60); // <-- error here
}
The compiler is giving me these warnings.
warning: left shift count >= width of type
warning: division by zero
Why is the compiler giving these warnings when 64 > 60?