From a2ca51373cd42684e3d8c995008b1d2c068e2398 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sat, 23 Jul 2005 23:39:12 +0000 Subject: [PATCH] Fixed compiler warning in physfs.c. --- CHANGELOG | 2 +- physfs.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index f52b3556..243fe007 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -7,7 +7,7 @@ 07232005 - Fixed bug in zip archiver (thanks, Jörg Walter!). Updated zlib to 1.2.3, which properly includes the security fix. Fixed "make dist" to handle .svn dirs and other file changes. Removed "debian" - directory. Upped version to 1.0.1. + directory. Fixed warning in physfs.c. Upped version to 1.0.1. 07132005 - Moved to zlib122, and security fix discussed here: http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2005-2096 06122005 - Added support for mingw to Unix build process (thanks, Matze!). diff --git a/physfs.c b/physfs.c index 2e10104c..7d95e6bc 100644 --- a/physfs.c +++ b/physfs.c @@ -1872,7 +1872,7 @@ int PHYSFS_seek(PHYSFS_file *handle, PHYSFS_uint64 pos) ((offset >= 0) && (offset <= h->buffill - h->bufpos)) /* forwards */ || ((offset < 0) && (-offset <= h->bufpos)) /* backwards */ ) { - h->bufpos += offset; + h->bufpos += (PHYSFS_uint32) offset; return(1); /* successful seek */ } /* if */ } /* if */