summaryrefslogtreecommitdiffstatshomepage
path: root/py/builtin.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-03-26 20:15:40 +0000
committerDamien George <damien.p.george@gmail.com>2014-03-26 20:15:40 +0000
commitc12b2213c16ba8839981c362c4d5f133a84b374b (patch)
tree59e3de4cce2ab28a9d4f73ba70477be98fb3c353 /py/builtin.c
parent69b3ba0df38e276b55f8f76e7f5276723e6d3abe (diff)
downloadmicropython-c12b2213c16ba8839981c362c4d5f133a84b374b.tar.gz
micropython-c12b2213c16ba8839981c362c4d5f133a84b374b.zip
Change mp_method_t.name from const char * to qstr.
Addresses issue #377.
Diffstat (limited to 'py/builtin.c')
-rw-r--r--py/builtin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/builtin.c b/py/builtin.c
index 281c57dd43..1e022becbd 100644
--- a/py/builtin.c
+++ b/py/builtin.c
@@ -178,8 +178,8 @@ STATIC mp_obj_t mp_builtin_dir(uint n_args, const mp_obj_t *args) {
}
}
if (meth != NULL) {
- for (; meth->name != NULL; meth++) {
- mp_obj_list_append(dir, MP_OBJ_NEW_QSTR(qstr_from_str(meth->name)));
+ for (; meth->name != MP_QSTR_NULL; meth++) {
+ mp_obj_list_append(dir, MP_OBJ_NEW_QSTR(meth->name));
}
}
return dir;