Add casts to double to fix compilation on ARM