Skip to content

Commit

Permalink
Fixed handful of compiler warnings produced when building 64bit with …
Browse files Browse the repository at this point in the history
…gcc.
  • Loading branch information
danij-deng committed Nov 16, 2009
1 parent fb24917 commit 95b94b6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions doomsday/engine/portable/src/p_materialmanager.c
Expand Up @@ -793,10 +793,10 @@ void P_MaterialManagerTicker(timespan_t time)
static void printMaterialInfo(materialnum_t num, boolean printNamespace)
{
const materialbind_t* mb = &materialBinds[num];
uint i;
int numDigits = M_NumDigits(numMaterialBinds);
int numDigits = M_NumDigits(numMaterialBinds);
uint i;

Con_Printf(" %*lu - \"%s\"", numDigits, num, mb->name);
Con_Printf(" %*u - \"%s\"", numDigits, (unsigned int) num, mb->name);
if(printNamespace)
Con_Printf(" (%i)", mb->mat->mnamespace);
Con_Printf(" [%i, %i]", mb->mat->width, mb->mat->height);
Expand Down
2 changes: 1 addition & 1 deletion doomsday/engine/portable/src/r_data.c
Expand Up @@ -311,7 +311,7 @@ colorpaletteid_t R_CreateColorPalette(const char* fmt, const char* name,

Con_Error("R_CreateColorPalette: Failed creating \"%s\", "
"invalid character '%c' in format string at "
"position %i.\n", name, *c, c - fmt);
"position %u.\n", name, *c, (unsigned int) (c - fmt));
} while(++c <= end);

if(pos != 3)
Expand Down
4 changes: 2 additions & 2 deletions doomsday/engine/portable/src/s_mus.c
Expand Up @@ -464,9 +464,9 @@ int Mus_Start(ded_music_t* def, boolean looped)
void* ptr;

VERBOSE(Con_Message("Mus_GetExt: Opened Song %s "
"(File \"%s\" %ul bytes)\n",
"(File \"%s\" %u bytes)\n",
def->id, M_PrettyPath(path),
len));
(unsigned int) len));

ptr = iMusic->SongBuffer(len);
F_Read(ptr, len, file);
Expand Down

0 comments on commit 95b94b6

Please sign in to comment.