8000 objcode: Fully parenthesize macro expansion. · micropython/micropython@8d1205c · GitHub
[go: up one dir, main page]

Skip to content

Commit 8d1205c

Browse files
committed
objcode: Fully parenthesize macro expansion.
as requested in code review. Signed-off-by: Jeff Epler <jepler@gmail.com>
1 parent bfe3337 commit 8d1205c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/objcode.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ static inline const void *mp_code_get_proto_fun(mp_obj_code_t *self) {
7272

7373
#include "py/emitglue.h"
7474

< 530A /td>
75-
#define MP_CODE_QSTR_MAP(context, idx) (qstr)(context->constants.qstr_table[idx])
75+
#define MP_CODE_QSTR_MAP(context, idx) ((qstr)(context->constants.qstr_table[idx]))
7676

7777
typedef struct _mp_obj_code_t {
7878
// TODO this was 4 words

0 commit comments

Comments
 (0)
0