Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
b8ec17c2
Commit
b8ec17c2
authored
Feb 05, 2014
by
Damien George
Browse files
py: Fix bug with dual initialisation of RT_UNARY_OP_NOT.
Fixes Issue #261.
parent
35e2a4e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
py/objtype.c
View file @
b8ec17c2
...
...
@@ -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
implement
ed
, 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
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment