]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
use size_t even more
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 5 Jul 2005 09:22:15 +0000 (09:22 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 5 Jul 2005 09:22:15 +0000 (09:22 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5494 d7cf8633-e32d-0410-b094-e92efae38249

zone.h

diff --git a/zone.h b/zone.h
index 74f20c6dd30fe3b78e1d1e9193024b2c10d691c5..0ef231be6fbe35e7b17114228e8043b0996167a3 100644 (file)
--- a/zone.h
+++ b/zone.h
@@ -52,7 +52,7 @@ typedef struct memheader_s
        struct memclump_s *clump;
 #endif
        // size of the memory after the header (excluding header and sentinel2)
        struct memclump_s *clump;
 #endif
        // size of the memory after the header (excluding header and sentinel2)
-       int size;
+       size_t size;
        // file name and line where Mem_Alloc was called
        const char *filename;
        int fileline;
        // file name and line where Mem_Alloc was called
        const char *filename;
        int fileline;
@@ -75,10 +75,10 @@ typedef struct memclump_s
        // should always be MEMCLUMP_SENTINEL
        unsigned int sentinel2;
        // if this drops to 0, the clump is freed
        // should always be MEMCLUMP_SENTINEL
        unsigned int sentinel2;
        // if this drops to 0, the clump is freed
-       int blocksinuse;
+       size_t blocksinuse;
        // largest block of memory available (this is reset to an optimistic
        // number when anything is freed, and updated when alloc fails the clump)
        // largest block of memory available (this is reset to an optimistic
        // number when anything is freed, and updated when alloc fails the clump)
-       int largestavailable;
+       size_t largestavailable;
        // next clump in the chain
        struct memclump_s *chain;
 }
        // next clump in the chain
        struct memclump_s *chain;
 }