Skip to content

Commit

Permalink
Fixed more Visual Studio compiler warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jul 13, 2017
1 parent 1bacc6d commit 53225ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/archiver_iso9660.c
Expand Up @@ -358,7 +358,7 @@ static int iso_readimage(ISO9660Handle *handle, PHYSFS_uint64 where,
handle->currpos += (PHYSFS_uint64) rc;

__PHYSFS_platformReleaseMutex(handle->mutex);
return rc;
return (int) rc; /* !!! FIXME: should this return "int" ? */
} /* iso_readimage */


Expand Down Expand Up @@ -709,7 +709,7 @@ static int iso_file_seek_foreign(ISO9660FileHandle *fhandle,
PHYSFS_sint64 pos;

BAIL_IF(offset < 0, PHYSFS_ERR_INVALID_ARGUMENT, 0);
BAIL_IF(((PHYSFS_uint64) offset) >= fhandle->filesize, PHYSFS_ERR_PAST_EOF, 0);
BAIL_IF(offset >= fhandle->filesize, PHYSFS_ERR_PAST_EOF, 0);

pos = fhandle->startblock * 2048 + offset;
BAIL_IF_ERRPASS(!fhandle->io->seek(fhandle->io, pos), -1);
Expand Down
2 changes: 1 addition & 1 deletion src/archiver_zip.c
Expand Up @@ -1681,7 +1681,7 @@ static PHYSFS_Io *ZIP_openRead(void *opaque, const char *filename)
const PHYSFS_uint64 len = (PHYSFS_uint64) (ptr - filename);
char *str = (char *) __PHYSFS_smallAlloc(len + 1);
BAIL_IF(!str, PHYSFS_ERR_OUT_OF_MEMORY, NULL);
memcpy(str, filename, len);
memcpy(str, filename, (size_t) len);
str[len] = '\0';
entry = zip_find_entry(info, str);
__PHYSFS_smallFree(str);
Expand Down

0 comments on commit 53225ca

Please sign in to comment.