Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
micropython
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
card10
micropython
Commits
b8ec17c2
Commit
b8ec17c2
authored
11 years ago
by
Damien George
Browse files
Options
Downloads
Patches
Plain Diff
py: Fix bug with dual initialisation of RT_UNARY_OP_NOT.
Fixes Issue #261.
parent
35e2a4e6
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
py/objtype.c
+1
-2
1 addition, 2 deletions
py/objtype.c
with
1 addition
and
2 deletions
py/objtype.c
+
1
−
2
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
...
@@ -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
[]
=
{
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_BOOL
]
=
MP_QSTR___bool__
,
[
RT_UNARY_OP_LEN
]
=
MP_QSTR___len__
,
[
RT_UNARY_OP_LEN
]
=
MP_QSTR___len__
,
//[RT_UNARY_OP_POSITIVE,
//[RT_UNARY_OP_POSITIVE,
//[RT_UNARY_OP_NEGATIVE,
//[RT_UNARY_OP_NEGATIVE,
//[RT_UNARY_OP_INVERT,
//[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
)
{
static
mp_obj_t
class_unary_op
(
int
op
,
mp_obj_t
self_in
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment