Skip to content

Commit fa29be5

Browse files
committed
restore a redundant NULL-comparison, it silences compiler diagnostics
1 parent e1d7e46 commit fa29be5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/repl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ STATIC bool test_qstr(mp_obj_t obj, qstr name) {
153153
} else {
154154
// try builtin module
155155
return mp_map_lookup((mp_map_t *)&mp_builtin_module_map,
156-
MP_OBJ_NEW_QSTR(name), MP_MAP_LOOKUP);
156+
MP_OBJ_NEW_QSTR(name), MP_MAP_LOOKUP) != NULL;
157157
}
158158
}
159159

0 commit comments

Comments
 (0)