diff options
author | Chris Robinson <[email protected]> | 2015-11-06 02:21:24 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2015-11-06 02:21:24 -0800 |
commit | 368f2d6907e6f6a670b168b1cfc1c0d7f9de452a (patch) | |
tree | 78fb745ec70d05e27c6670e8878266b7e44b8b01 | |
parent | 16a6e010fd28cf104146fd8ce24d67ee5d13764f (diff) |
Use ALuint instead of size_t for a loop iterator
-rw-r--r-- | Alc/panning.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Alc/panning.c b/Alc/panning.c index e69b3d2d..c1e42dce 100644 --- a/Alc/panning.c +++ b/Alc/panning.c @@ -196,7 +196,8 @@ typedef struct ChannelMap { static void SetChannelMap(ALCdevice *device, const ChannelMap *chanmap, size_t count, ALfloat ambiscale, ALboolean isfuma) { - size_t i, j, k; + size_t j, k; + ALuint i; device->AmbiScale = ambiscale; for(i = 0;i < MAX_OUTPUT_CHANNELS && device->ChannelName[i] != InvalidChannel;i++) @@ -230,7 +231,7 @@ static void SetChannelMap(ALCdevice *device, const ChannelMap *chanmap, size_t c } } if(j == count) - ERR("Failed to match %s channel ("SZFMT") in config\n", GetLabelFromChannel(device->ChannelName[i]), i); + ERR("Failed to match %s channel (%u) in config\n", GetLabelFromChannel(device->ChannelName[i]), i); } device->NumChannels = i; } |