aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/midi
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-03-23 15:22:37 -0700
committerChris Robinson <[email protected]>2014-03-23 15:22:37 -0700
commit83038c0dab0727b76765a8feed5a2c3c23c9915b (patch)
tree1f03da8314b0d2e97b7d3051d2214057b506747f /Alc/midi
parent55f851093f08bc1274a4b49c85a0651a9f6e9c0f (diff)
Add some integer casts, and a range check
Diffstat (limited to 'Alc/midi')
-rw-r--r--Alc/midi/sf2load.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/midi/sf2load.c b/Alc/midi/sf2load.c
index 2adb7366..5b7eee4a 100644
--- a/Alc/midi/sf2load.c
+++ b/Alc/midi/sf2load.c
@@ -814,7 +814,7 @@ static void fillZone(ALfontsound *sound, ALCcontext *context, const GenModList *
src1in != AL_INVALID && src1form != AL_INVALID && src0type != AL_INVALID &&
trans != AL_INVALID)
{
- ALsizei idx = mod - VECTOR_ITER_BEGIN(zone->mods);
+ ALsizei idx = (ALsizei)(mod - VECTOR_ITER_BEGIN(zone->mods));
ALfontsound_setModStagei(sound, context, idx, AL_SOURCE0_INPUT_SOFT, src0in);
ALfontsound_setModStagei(sound, context, idx, AL_SOURCE0_TYPE_SOFT, src0type);
ALfontsound_setModStagei(sound, context, idx, AL_SOURCE0_FORM_SOFT, src0form);