Fix warning from narrowing double -> int (#11)