@@ -146,7 +146,7 @@ open_write(std::ostream *stream, bool owns_pointer) {
146
146
close ();
147
147
_write = stream;
148
148
_owns_stream = owns_pointer;
149
- _write->seekp (0 , ios::beg);
149
+ _write->seekp (0 , std:: ios::beg);
150
150
_index_start = 0 ;
151
151
_file_end = 0 ;
152
152
_index_changed = true ;
@@ -205,10 +205,10 @@ open_read_write(std::iostream *stream, bool owns_pointer) {
205
205
_read = new StreamWrapper (stream, owns_pointer);
206
206
_write = stream;
207
207
_owns_stream = true ; // Because we own the StreamWrapper, above.
208
- _write->seekp (0 , ios::beg);
208
+ _write->seekp (0 , std:: ios::beg);
209
209
210
210
// Check whether the read stream is empty.
211
- stream->seekg (0 , ios::end);
211
+ stream->seekg (0 , std:: ios::end);
212
212
if (stream->tellg () == (streampos)0 ) {
213
213
// The read stream is empty, which is always valid.
214
214
_index_changed = true ;
@@ -914,7 +914,7 @@ compare_subfile(int index, const Filename &filename) {
914
914
915
915
if (filename.is_binary ()) {
916
916
// Check the file size.
917
- in2.seekg (0 , ios::end);
917
+ in2.seekg (0 , std:: ios::end);
918
918
streampos file_size = in2.tellg ();
919
919
920
920
if (file_size != (streampos)get_subfile_length (index)) {
@@ -1600,7 +1600,7 @@ read_header(std::istream &read) {
1600
1600
if (extra_length < 4 ) {
1601
1601
reader.skip_bytes (extra_length);
1602
1602
} else if (extra_length > 0 ) {
1603
- for (int i = 0 ; i < extra_length;) {
1603
+ for (size_t i = 0 ; i < extra_length;) {
1604
1604
size_t length = reader.get_uint16 ();
1605
1605
i += 4 ;
1606
1606
reader.skip_bytes (length);
0 commit comments