Fixed GCC warnings about incompatible type conversions
Merge pull request #195 from TsudaKageyu/fix-float

Fixed GCC warnings about incompatible type conversions