Fix format mismatch on Win32 newdemo

Win32 makes sizeof(object) an unsigned int instead of unsigned long.
This commit is contained in:
Kp 2013-08-03 20:00:10 +00:00
parent 4a67e8332a
commit 07d6e2c994
2 changed files with 2 additions and 2 deletions

View file

@ -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++)

View file

@ -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++)