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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy