From 70b8e1d1f5df9b8f80992daa5d60460d45998a8e Mon Sep 17 00:00:00 2001 From: Damien George Date: Wed, 14 Jul 2021 23:38:49 +1000 Subject: [PATCH] py/obj: Fix formatting of comment for mp_obj_is_integer. Signed-off-by: Damien George --- py/obj.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/py/obj.h b/py/obj.h index 578c55eef..11918ba17 100644 --- a/py/obj.h +++ b/py/obj.h @@ -779,9 +779,11 @@ bool mp_obj_is_callable(mp_obj_t o_in); mp_obj_t mp_obj_equal_not_equal(mp_binary_op_t op, mp_obj_t o1, mp_obj_t o2); bool mp_obj_equal(mp_obj_t o1, mp_obj_t o2); +// returns true if o is bool, small int or long int static inline bool mp_obj_is_integer(mp_const_obj_t o) { return mp_obj_is_int(o) || mp_obj_is_bool(o); -} // returns true if o is bool, small int or long int +} + mp_int_t mp_obj_get_int(mp_const_obj_t arg); mp_int_t mp_obj_get_int_truncated(mp_const_obj_t arg); bool mp_obj_get_int_maybe(mp_const_obj_t arg, mp_int_t *value);