Ryan C. Gordon %!s(int64=24) %!d(string=hai) anos
pai
achega
dfe65649df
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      platform/unix.c

+ 2 - 2
platform/unix.c

@@ -588,11 +588,11 @@ PHYSFS_sint64 __PHYSFS_platformRead(void *opaque, void *buffer,
 } /* __PHYSFS_platformRead */
 } /* __PHYSFS_platformRead */
 
 
 
 
-PHYSFS_sint64 __PHYSFS_platformWrite(void *opaque, void *buffer,
+PHYSFS_sint64 __PHYSFS_platformWrite(void *opaque, const void *buffer,
                                      PHYSFS_uint32 size, PHYSFS_uint32 count)
                                      PHYSFS_uint32 size, PHYSFS_uint32 count)
 {
 {
     FILE *io = (FILE *) opaque;
     FILE *io = (FILE *) opaque;
-    int rc = fwrite(buffer, size, count, io);
+    int rc = fwrite((void *) buffer, size, count, io);
     if (rc < count)
     if (rc < count)
         __PHYSFS_setError(strerror(errno));
         __PHYSFS_setError(strerror(errno));