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
57ebe1b2
Commit
57ebe1b2
authored
10 years ago
by
Damien George
Browse files
Options
Downloads
Patches
Plain Diff
unix-cpy: Fix adjustment of stack size when leaving exception handler.
Also remove __debug__ from one of the bytecode tests.
parent
28076f3d
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
py/emitcpy.c
+1
-1
1 addition, 1 deletion
py/emitcpy.c
tests/bytecode/pylib-tests/compileall.py
+1
-1
1 addition, 1 deletion
tests/bytecode/pylib-tests/compileall.py
with
2 additions
and
2 deletions
py/emitcpy.c
+
1
−
1
View file @
57ebe1b2
...
...
@@ -782,7 +782,7 @@ STATIC void emit_cpy_start_except_handler(emit_t *emit) {
}
STATIC
void
emit_cpy_end_except_handler
(
emit_t
*
emit
)
{
emit_cpy_adjust_stack_size
(
emit
,
-
5
);
// stack adjust
emit_cpy_adjust_stack_size
(
emit
,
-
2
);
// stack adjust
}
STATIC
void
emit_cpy_load_const_verbatim_strn
(
emit_t
*
emit
,
const
char
*
str
,
mp_uint_t
len
)
{
...
...
This diff is collapsed.
Click to expand it.
tests/bytecode/pylib-tests/compileall.py
+
1
−
1
View file @
57ebe1b2
...
...
@@ -88,7 +88,7 @@ def compile_file(fullname, ddir=None, force=False, rx=None, quiet=False,
return
success
if
os
.
path
.
isfile
(
fullname
):
if
legacy
:
cfile
=
fullname
+
(
'
c
'
if
__debug__
else
'
o
'
)
cfile
=
fullname
+
'
c
'
else
:
if
optimize
>=
0
:
cfile
=
imp
.
cache_from_source
(
fullname
,
...
...
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