We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05ba989 commit 7c08d60Copy full SHA for 7c08d60
Modules/_ctypes/cfield.c
@@ -344,7 +344,7 @@ Py_ssize_t NUM_BITS(Py_ssize_t bitsize) {
344
#define SET(type, x, v, size) \
345
(NUM_BITS(size) ? \
346
( ( (type)(x) & ~(BIT_MASK(type, size) << LOW_BIT(size)) ) | ( ((type)(v) & BIT_MASK(type, size)) << LOW_BIT(size) ) ) \
347
- : (type)v)
+ : (type)(v))
348
349
/*****************************************************************
350
* The setter methods return an object which must be kept alive, to keep the
0 commit comments