summaryrefslogtreecommitdiff
path: root/src/w_wad.c
diff options
context:
space:
mode:
authorSimon Howard2006-10-18 01:07:28 +0000
committerSimon Howard2006-10-18 01:07:28 +0000
commit201ba4b81853750c9ee262140c795d87b23ae24d (patch)
tree727349e22f2795d2b05a43974197906d9816297f /src/w_wad.c
parenta68f44a2c103aa0e6c6bd73417d17d1197f47b2a (diff)
downloadchocolate-doom-201ba4b81853750c9ee262140c795d87b23ae24d.tar.gz
chocolate-doom-201ba4b81853750c9ee262140c795d87b23ae24d.tar.bz2
chocolate-doom-201ba4b81853750c9ee262140c795d87b23ae24d.zip
Shut up warnings in w_wad.c.
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 706
Diffstat (limited to 'src/w_wad.c')
-rw-r--r--src/w_wad.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/w_wad.c b/src/w_wad.c
index 21402727..07cd9710 100644
--- a/src/w_wad.c
+++ b/src/w_wad.c
@@ -47,7 +47,7 @@
// Location of each lump on disk.
lumpinfo_t *lumpinfo;
-int numlumps = 0;
+unsigned int numlumps = 0;
// Hash table for fast lookups
@@ -138,7 +138,7 @@ unsigned int W_LumpNameHash(const char *s)
// specially to allow map reloads.
// But: the reload feature is a fragile hack...
-int reloadlump;
+unsigned int reloadlump;
char* reloadname;
@@ -146,7 +146,7 @@ FILE *W_AddFile (char *filename)
{
wadinfo_t header;
lumpinfo_t* lump_p;
- unsigned i;
+ unsigned int i;
FILE *handle;
int length;
int startlump;
@@ -252,7 +252,7 @@ void W_Reload (void)
wadinfo_t header;
int lumpcount;
lumpinfo_t* lump_p;
- unsigned i;
+ unsigned int i;
FILE *handle;
int length;
filelump_t* fileinfo;
@@ -374,7 +374,7 @@ int W_GetNumForName (char* name)
// W_LumpLength
// Returns the buffer size needed to load the given lump.
//
-int W_LumpLength (int lump)
+int W_LumpLength (unsigned int lump)
{
if (lump >= 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