diff --git a/py/pfenv_printf.c b/py/pfenv_printf.c
index d4c5fc9df567fabcc458e2e15c67139c68b67109..599700edcf96f73b1898b83170dc502c9ebcf0f8 100644
--- a/py/pfenv_printf.c
+++ b/py/pfenv_printf.c
@@ -148,7 +148,7 @@ int pfenv_vprintf(const pfenv_t *pfenv, const char *fmt, va_list args) {
                 break;
             case 'p':
             case 'P': // don't bother to handle upcase for 'P'
-                chrs += pfenv_print_int(pfenv, va_arg(args, mp_uint_t), 0, 16, 'a', flags, fill, width);
+                chrs += pfenv_print_int(pfenv, va_arg(args, unsigned int), 0, 16, 'a', flags, fill, width);
                 break;
 #if MICROPY_PY_BUILTINS_FLOAT
             case 'e':