diff options
author | Damien George <damien.p.george@gmail.com> | 2014-03-26 20:15:40 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-03-26 20:15:40 +0000 |
commit | c12b2213c16ba8839981c362c4d5f133a84b374b (patch) | |
tree | 59e3de4cce2ab28a9d4f73ba70477be98fb3c353 /py/objtuple.c | |
parent | 69b3ba0df38e276b55f8f76e7f5276723e6d3abe (diff) |
Change mp_method_t.name from const char * to qstr.
Addresses issue #377.
Diffstat (limited to 'py/objtuple.c')
-rw-r--r-- | py/objtuple.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/py/objtuple.c b/py/objtuple.c index 68f5abefd..334cf0562 100644 --- a/py/objtuple.c +++ b/py/objtuple.c @@ -166,9 +166,9 @@ STATIC mp_obj_t tuple_index(uint n_args, const mp_obj_t *args) { STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(tuple_index_obj, 2, 4, tuple_index); STATIC const mp_method_t tuple_type_methods[] = { - { "count", &tuple_count_obj }, - { "index", &tuple_index_obj }, - { NULL, NULL }, // end-of-list sentinel + { MP_QSTR_count, &tuple_count_obj }, + { MP_QSTR_index, &tuple_index_obj }, + { MP_QSTR_NULL, NULL }, // end-of-list sentinel }; const mp_obj_type_t tuple_type = { |