diff --git a/d1x-rebirth/main/newdemo.c b/d1x-rebirth/main/newdemo.c index 24e0a8339..555a2eea9 100644 --- a/d1x-rebirth/main/newdemo.c +++ b/d1x-rebirth/main/newdemo.c @@ -3028,7 +3028,7 @@ void newdemo_playback_one_frame() num_objs = Highest_object_index; cur_objs = (object *)d_malloc(sizeof(object) * (num_objs + 1)); if (cur_objs == NULL) { - Warning ("Couldn't get %lu bytes for objects in interpolate playback\n", sizeof(object) * num_objs); + Warning ("Couldn't get %lu bytes for objects in interpolate playback\n", (unsigned long)sizeof(object) * num_objs); break; } for (i = 0; i <= num_objs; i++) diff --git a/d2x-rebirth/main/newdemo.c b/d2x-rebirth/main/newdemo.c index af28dedaa..aa3fc985b 100644 --- a/d2x-rebirth/main/newdemo.c +++ b/d2x-rebirth/main/newdemo.c @@ -3261,7 +3261,7 @@ void newdemo_playback_one_frame() num_objs = Highest_object_index; cur_objs = (object *)d_malloc(sizeof(object) * (num_objs + 1)); if (cur_objs == NULL) { - Warning ("Couldn't get %lu bytes for objects in interpolate playback\n", sizeof(object) * num_objs); + Warning ("Couldn't get %lu bytes for objects in interpolate playback\n", (unsigned long)sizeof(object) * num_objs); break; } for (i = 0; i <= num_objs; i++)