platform/posix.c
branchstable-1.0
changeset 1179 eea580b4e199
parent 940 a624957f6288
equal deleted inserted replaced
1177:05a842260409 1179:eea580b4e199
   476 
   476 
   477 int __PHYSFS_platformEOF(void *opaque)
   477 int __PHYSFS_platformEOF(void *opaque)
   478 {
   478 {
   479     PHYSFS_sint64 pos = __PHYSFS_platformTell(opaque);
   479     PHYSFS_sint64 pos = __PHYSFS_platformTell(opaque);
   480     PHYSFS_sint64 len = __PHYSFS_platformFileLength(opaque);
   480     PHYSFS_sint64 len = __PHYSFS_platformFileLength(opaque);
   481     return(pos >= len);
   481     return((pos < 0) || (len < 0) || (pos >= len));
   482 } /* __PHYSFS_platformEOF */
   482 } /* __PHYSFS_platformEOF */
   483 
   483 
   484 
   484 
   485 int __PHYSFS_platformFlush(void *opaque)
   485 int __PHYSFS_platformFlush(void *opaque)
   486 {
   486 {