diff options
author | Damien George <damien.p.george@gmail.com> | 2014-10-03 19:52:22 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-10-03 19:52:22 +0100 |
commit | 39dc1454788d1c6fb06c79871c7cd6e12aeb50a0 (patch) | |
tree | 12cb09a1c24b932ca7bbf715a662e78c838e1bf9 /py/objstr.h | |
parent | 3eaa0c383317f05b678422f88546ecf21ea4f9bb (diff) | |
download | micropython-39dc1454788d1c6fb06c79871c7cd6e12aeb50a0.tar.gz micropython-39dc1454788d1c6fb06c79871c7cd6e12aeb50a0.zip |
py: Change [u]int to mp_[u]int_t in qstr.[ch], and some other places.
This should pretty much resolve issue #50.
Diffstat (limited to 'py/objstr.h')
-rw-r--r-- | py/objstr.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/py/objstr.h b/py/objstr.h index 8cd4852943..9bc0600852 100644 --- a/py/objstr.h +++ b/py/objstr.h @@ -36,17 +36,17 @@ typedef struct _mp_obj_str_t { // use this macro to extract the string hash #define GET_STR_HASH(str_obj_in, str_hash) \ - uint str_hash; if (MP_OBJ_IS_QSTR(str_obj_in)) \ + mp_uint_t str_hash; if (MP_OBJ_IS_QSTR(str_obj_in)) \ { str_hash = qstr_hash(MP_OBJ_QSTR_VALUE(str_obj_in)); } else { str_hash = ((mp_obj_str_t*)str_obj_in)->hash; } // use this macro to extract the string length #define GET_STR_LEN(str_obj_in, str_len) \ - uint str_len; if (MP_OBJ_IS_QSTR(str_obj_in)) \ + mp_uint_t str_len; if (MP_OBJ_IS_QSTR(str_obj_in)) \ { str_len = qstr_len(MP_OBJ_QSTR_VALUE(str_obj_in)); } else { str_len = ((mp_obj_str_t*)str_obj_in)->len; } // use this macro to extract the string data and length #define GET_STR_DATA_LEN(str_obj_in, str_data, str_len) \ - const byte *str_data; uint str_len; if (MP_OBJ_IS_QSTR(str_obj_in)) \ + const byte *str_data; mp_uint_t str_len; if (MP_OBJ_IS_QSTR(str_obj_in)) \ { str_data = qstr_data(MP_OBJ_QSTR_VALUE(str_obj_in), &str_len); } \ else { str_len = ((mp_obj_str_t*)str_obj_in)->len; str_data = ((mp_obj_str_t*)str_obj_in)->data; } |