summaryrefslogtreecommitdiff
path: root/liboil/dct/idct8x8_c.c
diff options
context:
space:
mode:
Diffstat (limited to 'liboil/dct/idct8x8_c.c')
-rw-r--r--liboil/dct/idct8x8_c.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/liboil/dct/idct8x8_c.c b/liboil/dct/idct8x8_c.c
index 078d78d..673a7c4 100644
--- a/liboil/dct/idct8x8_c.c
+++ b/liboil/dct/idct8x8_c.c
@@ -43,13 +43,13 @@
*/
#define BLOCK8x8_F64(ptr, stride, row, column) \
- (*((double *)((void *)ptr + stride*row) + column))
+ (*((double *)((unsigned char *)ptr + stride*row) + column))
#define BLOCK8x8_PTR_F64(ptr, stride, row, column) \
- ((double *)((void *)ptr + stride*row) + column)
+ ((double *)((unsigned char *)ptr + stride*row) + column)
#define BLOCK8x8_S16(ptr, stride, row, column) \
- (*((int16_t *)((void *)ptr + stride*row) + column))
+ (*((int16_t *)((unsigned char *)ptr + stride*row) + column))
static void
idct8x8_test (OilTest *test)