From 38cfa1bb3241553b84bcd1feb8254973fbd38fb4 Mon Sep 17 00:00:00 2001 From: cxgeorge <> Date: Fri, 16 Mar 2001 01:21:27 +0000 Subject: [PATCH] fix comp. warnings --- panda/src/express/patchfile.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/panda/src/express/patchfile.cxx b/panda/src/express/patchfile.cxx index bb912caac7..5e2ddd94fb 100644 --- a/panda/src/express/patchfile.cxx +++ b/panda/src/express/patchfile.cxx @@ -275,7 +275,7 @@ run(void) { //cout << "ADD: " << ADD_length << endl; while (bytes_left > 0) { - PN_uint32 bytes_this_time = (int)min(bytes_left, buflen); + PN_uint32 bytes_this_time = (PN_uint32) min(bytes_left, (PN_uint32) buflen); _patch_stream.read(_buffer->_buffer, bytes_this_time); _write_stream.write(_buffer->_buffer, bytes_this_time); bytes_left -= bytes_this_time; @@ -313,7 +313,7 @@ run(void) { PN_uint32 bytes_left = (PN_uint32)COPY_length; while (bytes_left > 0) { - PN_uint32 bytes_this_time = (int)min(bytes_left, buflen); + PN_uint32 bytes_this_time = (PN_uint32) min(bytes_left, (PN_uint32) buflen); _origfile_stream.read(_buffer->_buffer, bytes_this_time); _write_stream.write(_buffer->_buffer, bytes_this_time); bytes_left -= bytes_this_time; @@ -673,7 +673,7 @@ build(Filename &file_orig, Filename &file_new) { PN_uint32 new_pos = 0; PN_uint32 ADD_offset = new_pos; // this is the offset for the start of ADD operations - if(length_new >= _footprint_length) + if(((PN_uint32) length_new) >= _footprint_length) { while (new_pos < (length_new - _footprint_length)) {