summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/modos.c
diff options
context:
space:
mode:
Diffstat (limited to 'stmhal/modos.c')
-rw-r--r--stmhal/modos.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/modos.c b/stmhal/modos.c
index e0df05ca6b..dd6fd67ec9 100644
--- a/stmhal/modos.c
+++ b/stmhal/modos.c
@@ -162,7 +162,7 @@ STATIC mp_obj_t os_sync(void) {
MP_DEFINE_CONST_FUN_OBJ_0(os_sync_obj, os_sync);
STATIC mp_obj_t os_urandom(mp_obj_t num) {
- machine_int_t n = mp_obj_get_int(num);
+ mp_int_t n = mp_obj_get_int(num);
byte *data;
mp_obj_t o = mp_obj_str_builder_start(&mp_type_bytes, n, &data);
for (int i = 0; i < n; i++) {