diff --git a/src/tiff_reader.cpp b/src/tiff_reader.cpp index 1085943a7..6d13d0c21 100644 --- a/src/tiff_reader.cpp +++ b/src/tiff_reader.cpp @@ -79,10 +79,10 @@ static tsize_t tiff_read_proc(thandle_t fd, tdata_t buf, tsize_t size) { std::istream * in = reinterpret_cast(fd); std::streamsize request_size = size; - if (static_cast(request_size) != size) - return static_cast(-1); + if (static_cast(request_size) != size) + return static_cast(-1); in->read(reinterpret_cast(buf), request_size); - return static_cast(in->gcount()); + return static_cast(in->gcount()); } static tsize_t tiff_write_proc(thandle_t fd, tdata_t buf, tsize_t size)