lib/bindata/io.rb in bindata-1.4.3 vs lib/bindata/io.rb in bindata-1.4.4

- old
+ new

@@ -83,10 +83,10 @@ # Seek +n+ bytes from the current position in the io stream. def seekbytes(n) reset_read_bits @raw_io.seek(n, ::IO::SEEK_CUR) - rescue Errno::ESPIPE, Errno::EPIPE + rescue NoMethodError, Errno::ESPIPE, Errno::EPIPE skipbytes(n) end # Reads exactly +n+ bytes from +io+. #