lib/ttfunk/bit_field.rb in ttfunk-1.6.2.1 vs lib/ttfunk/bit_field.rb in ttfunk-1.7.0

- old
+ new

@@ -11,10 +11,10 @@ def on(pos) @value |= 2**pos end def on?(pos) - value & 2**pos > 0 + (value & 2**pos).positive? end def off(pos) @value &= 2**Math.log2(value).ceil - 2**pos - 1 end