]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
pr_comp: Use unsigned int for dprograms_t elements, matching FTEQW Cloudwalk/32bitprogs
authorCloudwalk <cloudwalk009@gmail.com>
Wed, 12 Aug 2020 16:51:47 +0000 (12:51 -0400)
committerCloudwalk <cloudwalk009@gmail.com>
Wed, 12 Aug 2020 16:51:47 +0000 (12:51 -0400)
pr_comp.h

index 44dba74a63766c1a0abad37a2f2c932c48638a64..20801b84c9dda98aea68db85a2b2b3911419dbd9 100644 (file)
--- a/pr_comp.h
+++ b/pr_comp.h
@@ -295,25 +295,25 @@ typedef struct dprograms_s
        int             version;
        int             crc;                    // check of header file
 
-       int             ofs_statements;
-       int             numstatements;  // statement 0 is an error
+       unsigned int            ofs_statements;
+       unsigned int            numstatements;  // statement 0 is an error
 
-       int             ofs_globaldefs;
-       int             numglobaldefs;
+       unsigned int            ofs_globaldefs;
+       unsigned int            numglobaldefs;
 
-       int             ofs_fielddefs;
-       int             numfielddefs;
+       unsigned int            ofs_fielddefs;
+       unsigned int            numfielddefs;
 
-       int             ofs_functions;
-       int             numfunctions;   // function 0 is an empty
+       unsigned int            ofs_functions;
+       unsigned int            numfunctions;   // function 0 is an empty
 
-       int             ofs_strings;
-       int             numstrings;             // first string is a null string
+       unsigned int            ofs_strings;
+       unsigned int            numstrings;             // first string is a null string
 
-       int             ofs_globals;
-       int             numglobals;
+       unsigned int            ofs_globals;
+       unsigned int            numglobals;
 
-       int             entityfields;
+       unsigned int            entityfields;
 }
 dprograms_t;