lib/sypex_geo/pack.rb in sypex_geo-0.2.2 vs lib/sypex_geo/pack.rb in sypex_geo-0.2.3

- old
+ new

@@ -56,10 +56,11 @@ when 'b' then [ 'Z*', :parse_string ] end end def parse_int24(val) - (val + (val[2].ord >> 7 > 0 ? "\xFF" : "\x00").b).unpack('l')[0] + val += (val[2].ord >> 7 > 0 ? "\xFF" : "\x00").force_encoding('BINARY') + val.unpack('l')[0] end def parse_uint24(val) (val + "\x00").unpack('L')[0] end