aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-02-26 17:45:18 -0800
committerChris Robinson <[email protected]>2014-02-26 17:45:18 -0800
commit3145bac8c6bf3f97f5232b801eb7ecac7f95e67f (patch)
treeec97719bcaa2e32319a108fcdc77d111465b10bc
parent99d82690efa6d00a325f7e2ae7d13edf80b6db67 (diff)
Add an explicit cast to make Windows happy
-rw-r--r--Alc/midi/sf2load.c4
1 files changed, 2 insertions, 2 deletions
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;