diff options
Diffstat (limited to 'py/objbool.c')
-rw-r--r-- | py/objbool.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/py/objbool.c b/py/objbool.c index b03c56924c..54f2b5da1e 100644 --- a/py/objbool.c +++ b/py/objbool.c @@ -10,7 +10,7 @@ typedef struct _mp_obj_bool_t { mp_obj_base_t base; - MP_BOOL value; + bool value; } mp_obj_bool_t; static void bool_print(void (*print)(void *env, const char *fmt, ...), void *env, mp_obj_t self_in) { @@ -44,8 +44,8 @@ const mp_obj_type_t bool_type = { .methods = NULL, }; -static const mp_obj_bool_t false_obj = {{&bool_type}, MP_FALSE}; -static const mp_obj_bool_t true_obj = {{&bool_type}, MP_TRUE}; +static const mp_obj_bool_t false_obj = {{&bool_type}, false}; +static const mp_obj_bool_t true_obj = {{&bool_type}, true}; const mp_obj_t mp_const_false = (mp_obj_t)&false_obj; const mp_obj_t mp_const_true = (mp_obj_t)&true_obj; |