aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2015-02-04 05:57:54 -0800
committerChris Robinson <[email protected]>2015-02-04 05:57:54 -0800
commitefb7b11d7f60d7fe6b1c10c21b4790f5a1dcd728 (patch)
treeaa52ec728898ec653d84b1cf03181fbe35b9d82c /Alc
parent33ced1a7c202879f60ea16c274c1c2cbbfe558f4 (diff)
Avoid unnecessary ExchangeInt uses
Diffstat (limited to 'Alc')
-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 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);