summaryrefslogtreecommitdiffstatshomepage
path: root/py/objstr.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-01-19 16:02:09 +0000
committerDamien George <damien.p.george@gmail.com>2014-01-19 16:02:09 +0000
commita11ceca807bd7a958c3d45ce02fe23cda0085f7d (patch)
treec2da00732cfd5343de5e2ead9adc9dbd7826952d /py/objstr.c
parent136b149e417314e5ad46b3ee78b811df57e74f41 (diff)
downloadmicropython-a11ceca807bd7a958c3d45ce02fe23cda0085f7d.tar.gz
micropython-a11ceca807bd7a958c3d45ce02fe23cda0085f7d.zip
Change int to uint for n_args in function with variable arguments.
Diffstat (limited to 'py/objstr.c')
-rw-r--r--py/objstr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/py/objstr.c b/py/objstr.c
index 7c1be50cc0..c232b1c92a 100644
--- a/py/objstr.c
+++ b/py/objstr.c
@@ -169,7 +169,7 @@ static bool chr_in_str(const char* const str, const size_t str_len, const char c
return false;
}
-static mp_obj_t str_find(int n_args, const mp_obj_t *args) {
+static mp_obj_t str_find(uint n_args, const mp_obj_t *args) {
assert(2 <= n_args && n_args <= 4);
assert(MP_OBJ_IS_TYPE(args[0], &str_type));
if (!MP_OBJ_IS_TYPE(args[1], &str_type)) {
@@ -209,7 +209,7 @@ static mp_obj_t str_find(int n_args, const mp_obj_t *args) {
}
}
-mp_obj_t str_strip(int n_args, const mp_obj_t *args) {
+mp_obj_t str_strip(uint n_args, const mp_obj_t *args) {
assert(1 <= n_args && n_args <= 2);
assert(MP_OBJ_IS_TYPE(args[0], &str_type));
const char *chars_to_del;
@@ -258,7 +258,7 @@ mp_obj_t str_strip(int n_args, const mp_obj_t *args) {
return mp_obj_new_str(qstr_from_str_take(stripped_str, stripped_len + 1));
}
-mp_obj_t str_format(int n_args, const mp_obj_t *args) {
+mp_obj_t str_format(uint n_args, const mp_obj_t *args) {
assert(MP_OBJ_IS_TYPE(args[0], &str_type));
mp_obj_str_t *self = args[0];