lib/objecthash.rb in objecthash-1.0.1 vs lib/objecthash.rb in objecthash-1.0.2
- old
+ new
@@ -108,10 +108,10 @@
# mantissa
raise unless f <= 1
raise unless f > 0.5
- while f
+ while f != 0.0
if f >= 1
s += "1"
f -= 1
else
s += "0"