5bc2073
Branches > main > 5bc2073 > files
Don't allow writing a float to overflow past 32 bit range
Commit: 5bc207329b7f3277e91e8c730dfe244be352a50e
Parent: 669730f
1 changed file:
src/net/bowmap/server/protocol/writers.clj view file
@@ -74,7 +74,7 @@ (def ushort> short>) (def int> (integer> 4)) (def long> (integer> 8))-(def float> (apply> Float/floatToRawIntBits int>))+(def float> (apply> (comp Float/floatToRawIntBits float) int>)) (def double> (apply> Double/doubleToRawLongBits long>)) (defn boolean>