lib/xdr/unsigned_int.rb in xdr-3.0.2 vs lib/xdr/unsigned_int.rb in xdr-3.0.3
- old
+ new
@@ -7,8 +7,8 @@
# TODO: check bounds
io.write [val].pack("L>")
end
def self.read(io)
- read_bytes(io, 4).unpack("L>").first
+ read_bytes(io, 4).unpack1("L>")
end
-end
\ No newline at end of file
+end