more quakeforge compiling on alpha patches

This commit is contained in:
Bill Currie 2001-11-17 05:26:30 +00:00
parent cda6923ffa
commit 46835e79fe
4 changed files with 6 additions and 5 deletions

View file

@ -285,7 +285,7 @@ SND_DumpChunks (void)
memcpy (str, data_p, 4);
data_p += 4;
iff_chunk_len = SND_GetLittleLong ();
Sys_Printf ("0x%x : %s (%d)\n", (int) (data_p - 4), str,
Sys_Printf ("0x%lx : %s (%d)\n", (long) (data_p - 4), str,
iff_chunk_len);
data_p += (iff_chunk_len + 1) & ~1;
} while (data_p < iff_end);

View file

@ -172,7 +172,7 @@ D_DrawSurfaces (void)
d_zistepv = s->d_zistepv;
d_ziorigin = s->d_ziorigin;
D_DrawSolidSurface (s, ((int) s->data & 0xFF));
D_DrawSolidSurface (s, ((size_t) s->data & 0xFF));
D_DrawZSpans (s->spans);
}
} else {

View file

@ -264,8 +264,9 @@ R_SetupFrame (void)
if ((surface_p - surfaces) > r_maxsurfsseen)
r_maxsurfsseen = surface_p - surfaces;
Con_Printf ("Used %d of %d surfs; %d max\n", surface_p - surfaces,
surf_max - surfaces, r_maxsurfsseen);
Con_Printf ("Used %ld of %ld surfs; %d max\n",
(long)(surface_p - surfaces),
(long)(surf_max - surfaces), r_maxsurfsseen);
}
if (r_numedges->int_val) {

View file

@ -245,7 +245,7 @@ Con_Condump_f (void)
end = start + con_linewidth;
while (end > start && end[-1] != ' ')
end--;
Qprintf (file, "%.*s\n", end - start, start);
Qprintf (file, "%.*s\n", (int)(end - start), start);
line++;
}