[trunk] Remove warning about cast double -> int. Instead use bit-shifting (compile...