summaryrefslogtreecommitdiffstats
path: root/Modules/audioop.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-11-11 05:47:35 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-11-11 05:47:35 (GMT)
commit23a7827c451b151fe1e403d30e8460850b2d69ea (patch)
treed9c7cc8c025c3af40c4a80a8bef2962f203b2cb9 /Modules/audioop.c
parent9d5c0710609320e51631750d1cf60c90cc618172 (diff)
downloadcpython-23a7827c451b151fe1e403d30e8460850b2d69ea.zip
cpython-23a7827c451b151fe1e403d30e8460850b2d69ea.tar.gz
cpython-23a7827c451b151fe1e403d30e8460850b2d69ea.tar.bz2
Fixed compile error on Windows caused by arithmetic with void * pointers
(issue #16685).
Diffstat (limited to 'Modules/audioop.c')
-rw-r--r--Modules/audioop.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/audioop.c b/Modules/audioop.c
index df4a524..5c83a7d 100644
--- a/Modules/audioop.c
+++ b/Modules/audioop.c
@@ -287,9 +287,9 @@ static int stepsizeTable[89] = {
15289, 16818, 18500, 20350, 22385, 24623, 27086, 29794, 32767
};
-#define GETINTX(T, cp, i) (*(T *)((cp) + (i)))
-#define SETINTX(T, cp, i, val) do { \
- *(T *)((cp) + (i)) = (T)(val); \
+#define GETINTX(T, cp, i) (*(T *)((unsigned char *)(cp) + (i)))
+#define SETINTX(T, cp, i, val) do { \
+ *(T *)((unsigned char *)(cp) + (i)) = (T)(val); \
} while (0)