Commit 23a7827c authored by Serhiy Storchaka's avatar Serhiy Storchaka

Fixed compile error on Windows caused by arithmetic with void * pointers

(issue #16685).
parent 9d5c0710
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment