Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
micropython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
micropython
Commits
7a30e87d
Commit
7a30e87d
authored
Dec 17, 2015
by
Damien George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
py: Fix MICROPY_STACKLESS mode to compile with MICROPY_OBJ_REPR_D.
parent
ab1e36dc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
py/objfun.c
py/objfun.c
+1
-1
py/vm.c
py/vm.c
+1
-1
No files found.
py/objfun.c
View file @
7a30e87d
...
...
@@ -167,7 +167,7 @@ STATIC void dump_args(const mp_obj_t *a, mp_uint_t sz) {
#if MICROPY_STACKLESS
mp_code_state
*
mp_obj_fun_bc_prepare_codestate
(
mp_obj_t
self_in
,
mp_uint_t
n_args
,
mp_uint_t
n_kw
,
const
mp_obj_t
*
args
)
{
MP_STACK_CHECK
();
mp_obj_fun_bc_t
*
self
=
self_in
;
mp_obj_fun_bc_t
*
self
=
MP_OBJ_TO_PTR
(
self_in
)
;
// get start of bytecode
const
byte
*
ip
=
self
->
bytecode
;
...
...
py/vm.c
View file @
7a30e87d
...
...
@@ -973,7 +973,7 @@ unwind_jump:;
mp_uint_t
n_args
=
unum
&
0xff
;
mp_uint_t
n_kw
=
(
unum
>>
8
)
&
0xff
;
int
adjust
=
(
sp
[
1
]
==
NULL
)
?
0
:
1
;
int
adjust
=
(
sp
[
1
]
==
MP_OBJ_
NULL
)
?
0
:
1
;
mp_code_state
*
new_state
=
mp_obj_fun_bc_prepare_codestate
(
*
sp
,
n_args
+
adjust
,
n_kw
,
sp
+
2
-
adjust
);
if
(
new_state
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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