diff options
author | Damien George <damien.p.george@gmail.com> | 2014-07-03 13:25:24 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-07-03 13:25:24 +0100 |
commit | 40f3c026823f8951a2fa04e9c7fc93c75bc27bec (patch) | |
tree | c9c8210654c7114f00c5234a8481d9b5fbd28ce0 /unix/modtime.c | |
parent | 065aba587571150074ea79483ffa72c0fe6bc8c8 (diff) | |
download | micropython-40f3c026823f8951a2fa04e9c7fc93c75bc27bec.tar.gz micropython-40f3c026823f8951a2fa04e9c7fc93c75bc27bec.zip |
Rename machine_(u)int_t to mp_(u)int_t.
See discussion in issue #50.
Diffstat (limited to 'unix/modtime.c')
-rw-r--r-- | unix/modtime.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unix/modtime.c b/unix/modtime.c index 286d8ea97e..15352735c6 100644 --- a/unix/modtime.c +++ b/unix/modtime.c @@ -68,7 +68,7 @@ STATIC mp_obj_t mod_time_time() { mp_float_t val = tv.tv_sec + (mp_float_t)tv.tv_usec / 1000000; return mp_obj_new_float(val); #else - return mp_obj_new_int((machine_int_t)time(NULL)); + return mp_obj_new_int((mp_int_t)time(NULL)); #endif } STATIC MP_DEFINE_CONST_FUN_OBJ_0(mod_time_time_obj, mod_time_time); @@ -81,7 +81,7 @@ STATIC mp_obj_t mod_time_clock() { // to preserve integer part resolution. return mp_obj_new_float((float)(clock() / 1000) / CLOCK_DIV); #else - return mp_obj_new_int((machine_int_t)clock()); + return mp_obj_new_int((mp_int_t)clock()); #endif } STATIC MP_DEFINE_CONST_FUN_OBJ_0(mod_time_clock_obj, mod_time_clock); |