X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=zone.h;h=d4abe16d4ee90518991a6bb696f09574a0c72fbb;hp=8db00453c8ca23fc05c986391bab4c25c888c43a;hb=7742409c24548c8708e5e6f37544d4f38008c428;hpb=43ee5e136a693ac9cfb40cb03fceea7d3149104f diff --git a/zone.h b/zone.h index 8db00453..d4abe16d 100644 --- a/zone.h +++ b/zone.h @@ -55,7 +55,7 @@ typedef struct memheader_s const char *filename; int fileline; // should always be MEMHEADER_SENTINEL1 - int sentinel1; + unsigned int sentinel1; // immediately followed by data, which is followed by a MEMHEADER_SENTINEL2 byte } memheader_t; @@ -66,12 +66,12 @@ typedef struct memclump_s // contents of the clump qbyte block[MEMCLUMPSIZE]; // should always be MEMCLUMP_SENTINEL - int sentinel1; + unsigned int sentinel1; // if a bit is on, it means that the MEMUNIT bytes it represents are // allocated, otherwise free int bits[MEMBITINTS]; // should always be MEMCLUMP_SENTINEL - int sentinel2; + unsigned int sentinel2; // if this drops to 0, the clump is freed int blocksinuse; // largest block of memory available (this is reset to an optimistic @@ -86,7 +86,7 @@ memclump_t; typedef struct mempool_s { // should always be MEMHEADER_SENTINEL1 - int sentinel1; + unsigned int sentinel1; // chain of individual memory allocations struct memheader_s *chain; #if MEMCLUMPING @@ -107,7 +107,7 @@ typedef struct mempool_s const char *filename; int fileline; // should always be MEMHEADER_SENTINEL1 - int sentinel2; + unsigned int sentinel2; } mempool_t;