Skip to content

Commit

Permalink
Fix size confusion
Browse files Browse the repository at this point in the history
Signed-off-by: Graham Chapman <[email protected]>
  • Loading branch information
gacholio committed Jun 28, 2018
1 parent eeecae9 commit 3654a66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runtime/zip/zipsup.c
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ zip_getZipComment(J9PortLibrary* portLib, J9ZipFile *zipFile, U_8 ** commentStri
size += MIN_ZIPFILE_SIZE;
}

if (j9file_read( zipFile->fd, buffer, (IDATA) size) != size) {
if (j9file_read( zipFile->fd, buffer, (IDATA)size) != (IDATA)size) {
zipFile->pointer = -1;
EXIT();
return ZIP_ERR_FILE_READ_ERROR;
Expand Down Expand Up @@ -538,7 +538,7 @@ I_32 scanForCentralEnd(J9PortLibrary* portLib, J9ZipFile *zipFile, J9ZipCentralE
*/
size += MIN_ZIPFILE_SIZE;
}
if (j9file_read( zipFile->fd, buffer, (IDATA) size) != size) {
if (j9file_read( zipFile->fd, buffer, (IDATA)size) != (IDATA)size) {
zipFile->pointer = -1;
return ZIP_ERR_FILE_READ_ERROR;
}
Expand Down

0 comments on commit 3654a66

Please sign in to comment.