diff options
author | Chris Robinson <[email protected]> | 2014-12-21 09:48:36 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-12-21 09:48:36 -0800 |
commit | 6574fa4863d3f913ab99ccca9a699e1125c2d11e (patch) | |
tree | e32b61aa0250b724122033e006efe316bc675f4f /Alc/ALu.c | |
parent | aa4cf99e635c3b2547339cdb82778a8aebd7a720 (diff) |
Cast to the pointer-to-type to increment the buffer
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r-- | Alc/ALu.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1302,7 +1302,7 @@ ALvoid aluMixData(ALCdevice *device, ALvoid *buffer, ALsizei size) { #define WRITE(T, a, b, c, d) do { \ Write_##T((a), (b), (c), (d)); \ - buffer = (char*)buffer + (c)*(d)*sizeof(T); \ + buffer = (T*)buffer + (c)*(d); \ } while(0) switch(device->FmtType) { |