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
GitLab 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
216a711c
Commit
216a711c
authored
8 years ago
by
Damien George
Browse files
Options
Downloads
Patches
Plain Diff
py/compile: Fix typo when checking for parse-node kind.
parent
6cf2a396
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
py/compile.c
+2
-4
2 additions, 4 deletions
py/compile.c
with
2 additions
and
4 deletions
py/compile.c
+
2
−
4
View file @
216a711c
...
@@ -499,8 +499,7 @@ STATIC void c_assign(compiler_t *comp, mp_parse_node_t pn, assign_kind_t assign_
...
@@ -499,8 +499,7 @@ STATIC void c_assign(compiler_t *comp, mp_parse_node_t pn, assign_kind_t assign_
// sequence of many items
// sequence of many items
uint
n
=
MP_PARSE_NODE_STRUCT_NUM_NODES
(
pns2
);
uint
n
=
MP_PARSE_NODE_STRUCT_NUM_NODES
(
pns2
);
c_assign_tuple
(
comp
,
pns
->
nodes
[
0
],
n
,
pns2
->
nodes
);
c_assign_tuple
(
comp
,
pns
->
nodes
[
0
],
n
,
pns2
->
nodes
);
}
else
if
(
MP_PARSE_NODE_STRUCT_KIND
(
pns
)
==
PN_comp_for
)
{
}
else
if
(
MP_PARSE_NODE_STRUCT_KIND
(
pns2
)
==
PN_comp_for
)
{
// TODO can we ever get here? can it be compiled?
goto
cannot_assign
;
goto
cannot_assign
;
}
else
{
}
else
{
// sequence with 2 items
// sequence with 2 items
...
@@ -900,8 +899,7 @@ STATIC void c_del_stmt(compiler_t *comp, mp_parse_node_t pn) {
...
@@ -900,8 +899,7 @@ STATIC void c_del_stmt(compiler_t *comp, mp_parse_node_t pn) {
for
(
int
i
=
0
;
i
<
n
;
i
++
)
{
for
(
int
i
=
0
;
i
<
n
;
i
++
)
{
c_del_stmt
(
comp
,
pns1
->
nodes
[
i
]);
c_del_stmt
(
comp
,
pns1
->
nodes
[
i
]);
}
}
}
else
if
(
MP_PARSE_NODE_STRUCT_KIND
(
pns
)
==
PN_comp_for
)
{
}
else
if
(
MP_PARSE_NODE_STRUCT_KIND
(
pns1
)
==
PN_comp_for
)
{
// TODO not implemented; can't del comprehension? can we get here?
goto
cannot_delete
;
goto
cannot_delete
;
}
else
{
}
else
{
// sequence with 2 items
// sequence with 2 items
...
...
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