summaryrefslogtreecommitdiffstatshomepage
path: root/py/objint_longlong.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/objint_longlong.c')
-rw-r--r--py/objint_longlong.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objint_longlong.c b/py/objint_longlong.c
index ea28bc7d9a..d07f72a555 100644
--- a/py/objint_longlong.c
+++ b/py/objint_longlong.c
@@ -23,7 +23,7 @@
void int_print(void (*print)(void *env, const char *fmt, ...), void *env, mp_obj_t self_in, mp_print_kind_t kind) {
if (MP_OBJ_IS_SMALL_INT(self_in)) {
- print(env, "%d", (int)MP_OBJ_SMALL_INT_VALUE(self_in));
+ print(env, INT_FMT, MP_OBJ_SMALL_INT_VALUE(self_in));
} else {
mp_obj_int_t *self = self_in;
print(env, "%lld" SUFFIX, self->val);