8000 runtime: Initialize bool field idiomatically. · micropython/micropython@dbd87a9 · GitHub
[go: up one dir, main page]

Skip to content

Commit dbd87a9

Browse files
committed
runtime: Initialize bool field idiomatically.
Signed-off-by: Jeff Epler <jepler@gmail.com>
1 parent 8d1205c commit dbd87a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/runtime.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ static inline void mp_thread_init_state(mp_state_thread_t *ts, size_t stack_size
171171

172172
#if MICROPY_PY_SYS_SETTRACE
173173
ts->prof_trace_callback = MP_OBJ_NULL;
174-
ts->prof_callback_is_executing = 0;
174+
ts->prof_callback_is_executing = false;
175175
ts->current_code_state = NULL;
176176
#endif
177177

0 commit comments

Comments
 (0)
0