Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
00be7a84
Commit
00be7a84
authored
Oct 03, 2014
by
Damien George
Browse files
py: Fix unix-cpy to compile with uint->mp_uint_t changes.
parent
39dc1454
Changes
1
Hide whitespace changes
Inline
Side-by-side
py/compile.c
View file @
00be7a84
...
...
@@ -500,7 +500,7 @@ STATIC void cpython_c_tuple_emit_const(compiler_t *comp, mp_parse_node_t pn, vst
case
MP_PARSE_NODE_DECIMAL
:
vstr_printf
(
vstr
,
"%s"
,
qstr_str
(
arg
));
break
;
case
MP_PARSE_NODE_STRING
:
case
MP_PARSE_NODE_BYTES
:
{
uint
len
;
mp_
uint
_t
len
;
const
byte
*
str
=
qstr_data
(
arg
,
&
len
);
cpython_c_print_quoted_str
(
vstr
,
(
const
char
*
)
str
,
len
,
MP_PARSE_NODE_LEAF_KIND
(
pn
)
==
MP_PARSE_NODE_BYTES
);
break
;
...
...
@@ -1564,7 +1564,7 @@ void compile_import_from(compiler_t *comp, mp_parse_node_struct_t *pns) {
vstr_printf
(
vstr
,
", "
);
}
vstr_printf
(
vstr
,
"'"
);
uint
len
;
mp_
uint
_t
len
;
const
byte
*
str
=
qstr_data
(
id2
,
&
len
);
vstr_add_strn
(
vstr
,
(
const
char
*
)
str
,
len
);
vstr_printf
(
vstr
,
"'"
);
...
...
Write
Preview
Supports
Markdown
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