diff options
author | ian-v <ianv888@gmail.com> | 2014-01-06 09:52:29 -0800 |
---|---|---|
committer | ian-v <ianv888@gmail.com> | 2014-01-06 09:52:29 -0800 |
commit | 7a16fadbf843ca5d49fb20b5f5785ffccfd9019f (patch) | |
tree | 167d326efc1a1a75d3a371bbeab1a0bc4164fd9e /py/objrange.c | |
parent | e03c0533fe467439bae1addd6d2a2ee57a9370e4 (diff) |
Co-exist with C++ (issue #85)
Diffstat (limited to 'py/objrange.c')
-rw-r--r-- | py/objrange.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/py/objrange.c b/py/objrange.c index 1ef42673f..5c51656e8 100644 --- a/py/objrange.c +++ b/py/objrange.c @@ -32,7 +32,7 @@ static const mp_obj_type_t range_type = { NULL, // binary_op range_getiter, NULL, // iternext - .methods = {{NULL, NULL},}, + .methods = NULL, }; // range is a class and instances are immutable sequence objects @@ -77,7 +77,7 @@ static const mp_obj_type_t range_it_type = { NULL, // binary_op NULL, // getiter range_it_iternext, - .methods = {{NULL, NULL},}, + .methods = NULL, }; mp_obj_t mp_obj_new_range_iterator(int cur, int stop, int step) { |