(svn r14464) -Codechange: replace (uint)-1 with UINT_MAX (PhilSophus)

This commit is contained in:
rubidium
2008-10-14 18:38:51 +00:00
parent 03bef3fb5b
commit 272b2ef0e9
22 changed files with 45 additions and 45 deletions

View File

@@ -425,7 +425,7 @@ static void DeleteEntryFromSpriteCache()
/* Display an error message and die, in case we found no sprite at all.
* This shouldn't really happen, unless all sprites are locked. */
if (best == (uint)-1) error("Out of sprite memory");
if (best == UINT_MAX) error("Out of sprite memory");
/* Mark the block as free (the block must be in use) */
s = (MemBlock*)GetSpriteCache(best)->ptr - 1;