diff --git a/lib/rac/chunk_reader.go b/lib/rac/chunk_reader.go index ee0fd8c6..b19dd87a 100644 --- a/lib/rac/chunk_reader.go +++ b/lib/rac/chunk_reader.go @@ -30,7 +30,7 @@ func u48LE(b []byte) int64 { // Seek and then ReadFull. Calling ReadAt is presumably slightly more // efficient, e.g. one syscall instead of two. func readAt(r io.ReadSeeker, p []byte, offset int64) error { - if a, ok := r.(io.ReaderAt); ok && false { + if a, ok := r.(io.ReaderAt); ok { n, err := a.ReadAt(p, offset) if (n == len(p)) && (err == io.EOF) { err = nil diff --git a/lib/raczlib/raczlib.go b/lib/raczlib/raczlib.go index c1c33442..309512aa 100644 --- a/lib/raczlib/raczlib.go +++ b/lib/raczlib/raczlib.go @@ -46,7 +46,7 @@ func u32BE(b []byte) uint32 { // Seek and then ReadFull. Calling ReadAt is presumably slightly more // efficient, e.g. one syscall instead of two. func readAt(r io.ReadSeeker, p []byte, offset int64) error { - if a, ok := r.(io.ReaderAt); ok && false { + if a, ok := r.(io.ReaderAt); ok { n, err := a.ReadAt(p, offset) if (n == len(p)) && (err == io.EOF) { err = nil