Skip to content

Commit 442e855

Browse files
committed
express: Fix a compilation issue in certain configurations
1 parent 6d228df commit 442e855

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

panda/src/express/zipArchive.cxx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ open_write(std::ostream *stream, bool owns_pointer) {
146146
close();
147147
_write = stream;
148148
_owns_stream = owns_pointer;
149-
_write->seekp(0, ios::beg);
149+
_write->seekp(0, std::ios::beg);
150150
_index_start = 0;
151151
_file_end = 0;
152152
_index_changed = true;
@@ -205,10 +205,10 @@ open_read_write(std::iostream *stream, bool owns_pointer) {
205205
_read = new StreamWrapper(stream, owns_pointer);
206206
_write = stream;
207207
_owns_stream = true; // Because we own the StreamWrapper, above.
208-
_write->seekp(0, ios::beg);
208+
_write->seekp(0, std::ios::beg);
209209

210210
// Check whether the read stream is empty.
211-
stream->seekg(0, ios::end);
211+
stream->seekg(0, std::ios::end);
212212
if (stream->tellg() == (streampos)0) {
213213
// The read stream is empty, which is always valid.
214214
_index_changed = true;
@@ -914,7 +914,7 @@ compare_subfile(int index, const Filename &filename) {
914914

915915
if (filename.is_binary()) {
916916
// Check the file size.
917-
in2.seekg(0, ios::end);
917+
in2.seekg(0, std::ios::end);
918918
streampos file_size = in2.tellg();
919919

920920
if (file_size != (streampos)get_subfile_length(index)) {
@@ -1600,7 +1600,7 @@ read_header(std::istream &read) {
16001600
if (extra_length < 4) {
16011601
reader.skip_bytes(extra_length);
16021602
} else if (extra_length > 0) {
1603-
for (int i = 0; i < extra_length;) {
1603+
for (size_t i = 0; i < extra_length;) {
16041604
size_t length = reader.get_uint16();
16051605
i += 4;
16061606
reader.skip_bytes(length);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy