From 6574fa4863d3f913ab99ccca9a699e1125c2d11e Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 21 Dec 2014 09:48:36 -0800 Subject: Cast to the pointer-to-type to increment the buffer --- Alc/ALu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Alc/ALu.c b/Alc/ALu.c index 781a986e..af7ca616 100644 --- a/Alc/ALu.c +++ b/Alc/ALu.c @@ -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) { -- cgit v1.2.3