From 3145bac8c6bf3f97f5232b801eb7ecac7f95e67f Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 26 Feb 2014 17:45:18 -0800 Subject: Add an explicit cast to make Windows happy --- Alc/midi/sf2load.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Alc/midi') diff --git a/Alc/midi/sf2load.c b/Alc/midi/sf2load.c index 169a5189..e6389811 100644 --- a/Alc/midi/sf2load.c +++ b/Alc/midi/sf2load.c @@ -1019,8 +1019,8 @@ static void processInstrument(ALfontsound ***sounds, ALsizei *sounds_size, ALCco temp = realloc(*sounds, (zone_end-zone + *sounds_size)*sizeof((*sounds)[0])); if(!temp) { - ERR("Failed reallocating fontsound storage to %ld elements (from %d)\n", - (zone_end-zone + *sounds_size), *sounds_size); + ERR("Failed reallocating fontsound storage to %d elements (from %d)\n", + (ALsizei)(zone_end-zone) + *sounds_size, *sounds_size); return; } *sounds = temp; -- cgit v1.2.3