File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -773,9 +773,7 @@ class BufferReader : public Image::Reader {
773773 bool hasBytes (unsigned n) const override { return (_idx + n - 1 < _len); }
774774
775775 uint8_t getNext () override {
776- if (_idx < _len) {
777- return _buf[_idx++];
778- }
776+ return _buf[_idx++];
779777 }
780778
781779 void skipBytes (unsigned n) override { _idx += n; }
@@ -789,9 +787,9 @@ class BufferReader : public Image::Reader {
789787class StreamReader : public Image ::Reader {
790788public:
791789 StreamReader (FILE *stream) : _stream(stream), _len(0 ), _idx(0 ) {
792- fseeko (_stream, 0 , SEEK_END);
790+ fseek (_stream, 0 , SEEK_END);
793791 _len = ftello (_stream);
794- fseeko (_stream, 0 , SEEK_SET);
792+ fseek (_stream, 0 , SEEK_SET);
795793 }
796794
797795 bool hasBytes (unsigned n) const override { return (_idx + n - 1 < _len); }
@@ -803,7 +801,7 @@ class StreamReader : public Image::Reader {
803801
804802 void skipBytes (unsigned n) override {
805803 _idx += n;
806- fseeko (_stream, _idx, SEEK_SET);
804+ fseek (_stream, _idx, SEEK_SET);
807805 }
808806
809807private:
You can’t perform that action at this time.
0 commit comments