From 201ba4b81853750c9ee262140c795d87b23ae24d Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Wed, 18 Oct 2006 01:07:28 +0000 Subject: Shut up warnings in w_wad.c. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 706 --- src/d_main.c | 2 +- src/w_checksum.c | 2 +- src/w_merge.c | 2 +- src/w_wad.c | 14 +++++++------- src/w_wad.h | 6 +++--- 5 files changed, 13 insertions(+), 13 deletions(-) (limited to 'src') diff --git a/src/d_main.c b/src/d_main.c index 9e5f1f60..b4d77961 100644 --- a/src/d_main.c +++ b/src/d_main.c @@ -852,7 +852,7 @@ static void IdentifyVersion(void) if (gamemission == none) { - int i; + unsigned int i; for (i=0; i= numlumps) I_Error ("W_LumpLength: %i >= numlumps",lump); @@ -391,7 +391,7 @@ int W_LumpLength (int lump) // void W_ReadLump -( int lump, +( unsigned int lump, void* dest ) { int c; @@ -543,7 +543,7 @@ void W_Profile (void) void W_GenerateHashTable(void) { - int i; + unsigned int i; // Free the old hash table, if there is one diff --git a/src/w_wad.h b/src/w_wad.h index 9e65fb1e..bf010d5b 100644 --- a/src/w_wad.h +++ b/src/w_wad.h @@ -74,7 +74,7 @@ struct lumpinfo_s extern void** lumpcache; extern lumpinfo_t* lumpinfo; -extern int numlumps; +extern unsigned int numlumps; FILE *W_AddFile (char *filename); void W_Reload (void); @@ -82,8 +82,8 @@ void W_Reload (void); int W_CheckNumForName (char* name); int W_GetNumForName (char* name); -int W_LumpLength (int lump); -void W_ReadLump (int lump, void *dest); +int W_LumpLength (unsigned int lump); +void W_ReadLump (unsigned int lump, void *dest); void* W_CacheLumpNum (int lump, int tag); void* W_CacheLumpName (char* name, int tag); -- cgit v1.2.3