Cast to the pointer-to-type to increment the buffer

This commit is contained in:
Chris Robinson
2014-12-21 09:48:36 -08:00
parent aa4cf99e63
commit 6574fa4863
+1 -1
View File
@@ -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)
{