Skip to content

Commit 7c08d60

Browse files
committed
Add parens around macro argument
1 parent 05ba989 commit 7c08d60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_ctypes/cfield.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ Py_ssize_t NUM_BITS(Py_ssize_t bitsize) {
344344
#define SET(type, x, v, size) \
345345
(NUM_BITS(size) ? \
346346
( ( (type)(x) & ~(BIT_MASK(type, size) << LOW_BIT(size)) ) | ( ((type)(v) & BIT_MASK(type, size)) << LOW_BIT(size) ) ) \
347-
: (type)v)
347+
: (type)(v))
348348

349349
/*****************************************************************
350350
* The setter methods return an object which must be kept alive, to keep the

0 commit comments

Comments
 (0)