From efb7b11d7f60d7fe6b1c10c21b4790f5a1dcd728 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 4 Feb 2015 05:57:54 -0800 Subject: Avoid unnecessary ExchangeInt uses --- Alc/midi/sf2load.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Alc/midi/sf2load.c b/Alc/midi/sf2load.c index 8a54844a..31f6ee02 100644 --- a/Alc/midi/sf2load.c +++ b/Alc/midi/sf2load.c @@ -1331,7 +1331,7 @@ ALboolean loadSf2(Reader *stream, ALsoundfont *soundfont, ALCcontext *context) for(j = 0;j < sounds_size;j++) IncrementRef(&sounds[j]->ref); sounds = ExchangePtr((XchgPtr*)&presets[presets_size]->Sounds, sounds); - ExchangeInt(&presets[presets_size]->NumSounds, sounds_size); + presets[presets_size]->NumSounds = sounds_size; presets_size++; } free(sounds); @@ -1342,7 +1342,7 @@ ALboolean loadSf2(Reader *stream, ALsoundfont *soundfont, ALCcontext *context) for(i = soundfont->NumPresets;i < presets_size;i++) IncrementRef(&presets[i]->ref); presets = ExchangePtr((XchgPtr*)&soundfont->Presets, presets); - ExchangeInt(&soundfont->NumPresets, presets_size); + soundfont->NumPresets = presets_size; free(presets); -- cgit v1.2.3