diff --git a/libs/audio/renderer/snd_mem.c b/libs/audio/renderer/snd_mem.c index 7f5f3a261..a9fbd1104 100644 --- a/libs/audio/renderer/snd_mem.c +++ b/libs/audio/renderer/snd_mem.c @@ -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); diff --git a/libs/video/renderer/sw/d_edge.c b/libs/video/renderer/sw/d_edge.c index 50392fb7b..0df0ea895 100644 --- a/libs/video/renderer/sw/d_edge.c +++ b/libs/video/renderer/sw/d_edge.c @@ -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 { diff --git a/libs/video/renderer/sw/sw_rmisc.c b/libs/video/renderer/sw/sw_rmisc.c index 43251b518..867c765d1 100644 --- a/libs/video/renderer/sw/sw_rmisc.c +++ b/libs/video/renderer/sw/sw_rmisc.c @@ -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) { diff --git a/qw/source/console.c b/qw/source/console.c index 0c18958c8..286d78710 100644 --- a/qw/source/console.c +++ b/qw/source/console.c @@ -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++; }