Przeglądaj źródła

Fixed bug in PHYSFS_VERSION macro.

Ryan C. Gordon 24 lat temu
rodzic
commit
91ce826b1e
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3 3
      physfs.h

+ 3 - 3
physfs.h

@@ -170,9 +170,9 @@ typedef struct __PHYSFS_VERSION__
 #define PHYSFS_VER_PATCH 0
 
 #define PHYSFS_VERSION(x) { \
-                            x->major = PHYSFS_VER_MAJOR; \
-                            x->minor = PHYSFS_VER_MINOR; \
-                            x->patch = PHYSFS_VER_PATCH; \
+                            (x)->major = PHYSFS_VER_MAJOR; \
+                            (x)->minor = PHYSFS_VER_MINOR; \
+                            (x)->patch = PHYSFS_VER_PATCH; \
                           }
 
 /**