mirror of
https://github.com/python/cpython.git
synced 2025-11-02 11:08:57 +00:00
Fixed compile error on Windows caused by arithmetic with void * pointers
(issue #16685).
This commit is contained in:
parent
9d5c071060
commit
23a7827c45
1 changed files with 3 additions and 3 deletions
|
|
@ -287,9 +287,9 @@ static int stepsizeTable[89] = {
|
||||||
15289, 16818, 18500, 20350, 22385, 24623, 27086, 29794, 32767
|
15289, 16818, 18500, 20350, 22385, 24623, 27086, 29794, 32767
|
||||||
};
|
};
|
||||||
|
|
||||||
#define GETINTX(T, cp, i) (*(T *)((cp) + (i)))
|
#define GETINTX(T, cp, i) (*(T *)((unsigned char *)(cp) + (i)))
|
||||||
#define SETINTX(T, cp, i, val) do { \
|
#define SETINTX(T, cp, i, val) do { \
|
||||||
*(T *)((cp) + (i)) = (T)(val); \
|
*(T *)((unsigned char *)(cp) + (i)) = (T)(val); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue