瀏覽代碼

Fixed warning in physfs.c.

Ryan C. Gordon 21 年之前
父節點
當前提交
6e33ae594d
共有 2 個文件被更改,包括 3 次插入2 次删除
  1. 2 1
      CHANGELOG
  2. 1 1
      physfs.c

+ 2 - 1
CHANGELOG

@@ -6,7 +6,8 @@
            More minor OS/2 tweaks. Updated zlib to 1.2.3, which properly
            More minor OS/2 tweaks. Updated zlib to 1.2.3, which properly
            includes the security fix. Fixed "make dist" to handle .svn dirs
            includes the security fix. Fixed "make dist" to handle .svn dirs
            and other file changes. Removed "debian" directory. Allow a mount
            and other file changes. Removed "debian" directory. Allow a mount
-           point of NULL to be "/", per the documentation.
+           point of NULL to be "/", per the documentation. Fixed warning in
+           physfs.c.
            Upped version to 1.1.0 ... first release of 1.1 dev branch!
            Upped version to 1.1.0 ... first release of 1.1 dev branch!
 07212005 - Patched to compile on OS/2 again.
 07212005 - Patched to compile on OS/2 again.
 07132005 - Updated zlib to 1.2.2, and patched it for this security hole:
 07132005 - Updated zlib to 1.2.2, and patched it for this security hole:

+ 1 - 1
physfs.c

@@ -1963,7 +1963,7 @@ int PHYSFS_seek(PHYSFS_File *handle, PHYSFS_uint64 pos)
             ((offset >= 0) && (offset <= fh->buffill - fh->bufpos)) /* fwd */
             ((offset >= 0) && (offset <= fh->buffill - fh->bufpos)) /* fwd */
             || ((offset < 0) && (-offset <= fh->bufpos)) /* backward */ )
             || ((offset < 0) && (-offset <= fh->bufpos)) /* backward */ )
         {
         {
-            fh->bufpos += offset;
+            fh->bufpos += (PHYSFS_uint32) offset;
             return(1); /* successful seek */
             return(1); /* successful seek */
         } /* if */
         } /* if */
     } /* if */
     } /* if */