diff options
author | Damien George <damien.p.george@gmail.com> | 2014-02-05 00:57:31 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-02-05 00:57:31 +0000 |
commit | b8ec17c2d16407dd186d1f8f76c1e7c420bb7729 (patch) | |
tree | 57c971fa08592fdb78a0a520c92f026872613486 /py | |
parent | 35e2a4e6bb319a208af8d3e5c3e59cee7873400a (diff) | |
download | micropython-b8ec17c2d16407dd186d1f8f76c1e7c420bb7729.tar.gz micropython-b8ec17c2d16407dd186d1f8f76c1e7c420bb7729.zip |
py: Fix bug with dual initialisation of RT_UNARY_OP_NOT.
Fixes Issue #261.
Diffstat (limited to 'py')
-rw-r--r-- | py/objtype.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/py/objtype.c b/py/objtype.c index d35c9a98d6..6934cb354d 100644 --- a/py/objtype.c +++ b/py/objtype.c @@ -117,13 +117,12 @@ static mp_obj_t class_make_new(mp_obj_t self_in, uint n_args, uint n_kw, const m } static const qstr unary_op_method_name[] = { - [RT_UNARY_OP_NOT] = MP_QSTR_, // don't need to implement this [RT_UNARY_OP_BOOL] = MP_QSTR___bool__, [RT_UNARY_OP_LEN] = MP_QSTR___len__, //[RT_UNARY_OP_POSITIVE, //[RT_UNARY_OP_NEGATIVE, //[RT_UNARY_OP_INVERT, - [RT_UNARY_OP_NOT] = MP_QSTR_, // not implemented, used to make sure array has full size + [RT_UNARY_OP_NOT] = MP_QSTR_, // don't need to implement this, used to make sure array has full size }; static mp_obj_t class_unary_op(int op, mp_obj_t self_in) { |