Fix format mismatch on Win32 newdemo
Win32 makes sizeof(object) an unsigned int instead of unsigned long.
This commit is contained in:
parent
4a67e8332a
commit
07d6e2c994
|
@ -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++)
|
||||
|
|
|
@ -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++)
|
||||
|
|
Loading…
Reference in a new issue