Преглед изворни кода

Fixed compiler warning in physfs.c.

Ryan C. Gordon пре 21 година
родитељ
комит
a2ca51373c
2 измењених фајлова са 2 додато и 2 уклоњено
  1. 1 1
      CHANGELOG
  2. 1 1
      physfs.c

+ 1 - 1
CHANGELOG

@@ -7,7 +7,7 @@
 07232005 - Fixed bug in zip archiver (thanks, Jörg Walter!). Updated zlib to
 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"
            1.2.3, which properly includes the security fix. Fixed "make dist"
            to handle .svn dirs and other file changes. Removed "debian"
            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:
 07132005 - Moved to zlib122, and security fix discussed here:
            http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2005-2096
            http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2005-2096
 06122005 - Added support for mingw to Unix build process (thanks, Matze!).
 06122005 - Added support for mingw to Unix build process (thanks, Matze!).

+ 1 - 1
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->buffill - h->bufpos)) /* forwards */
             || ((offset < 0) && (-offset <= h->bufpos)) /* backwards */ )
             || ((offset < 0) && (-offset <= h->bufpos)) /* backwards */ )
         {
         {
-            h->bufpos += offset;
+            h->bufpos += (PHYSFS_uint32) offset;
             return(1); /* successful seek */
             return(1); /* successful seek */
         } /* if */
         } /* if */
     } /* if */
     } /* if */