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
1f92ffb5
Commit
1f92ffb5
authored
Nov 09, 2015
by
Damien George
Browse files
py/emitinlinethumb: Allow to compile with -Wsign-compare.
parent
723d598d
Changes
1
Hide whitespace changes
Inline
Side-by-side
py/emitinlinethumb.c
View file @
1f92ffb5
...
...
@@ -117,7 +117,7 @@ STATIC bool emit_inline_thumb_label(emit_inline_asm_t *emit, mp_uint_t label_num
assert
(
label_num
<
emit
->
max_num_labels
);
if
(
emit
->
pass
==
MP_PASS_CODE_SIZE
)
{
// check for duplicate label on first pass
for
(
int
i
=
0
;
i
<
emit
->
max_num_labels
;
i
++
)
{
for
(
u
int
i
=
0
;
i
<
emit
->
max_num_labels
;
i
++
)
{
if
(
emit
->
label_lookup
[
i
]
==
label_id
)
{
return
false
;
}
...
...
@@ -318,7 +318,7 @@ STATIC int get_arg_label(emit_inline_asm_t *emit, const char *op, mp_parse_node_
return
0
;
}
qstr
label_qstr
=
MP_PARSE_NODE_LEAF_ARG
(
pn
);
for
(
int
i
=
0
;
i
<
emit
->
max_num_labels
;
i
++
)
{
for
(
u
int
i
=
0
;
i
<
emit
->
max_num_labels
;
i
++
)
{
if
(
emit
->
label_lookup
[
i
]
==
label_qstr
)
{
return
i
;
}
...
...
@@ -537,7 +537,7 @@ STATIC void emit_inline_thumb_op(emit_inline_asm_t *emit, qstr op, mp_uint_t n_a
cc
=
cc_name_table
[
i
].
cc
;
}
}
if
(
cc
==
-
1
)
{
if
(
cc
==
(
mp_uint_t
)
-
1
)
{
goto
unknown_op
;
}
int
label_num
=
get_arg_label
(
emit
,
op_str
,
pn_args
[
0
]);
...
...
@@ -555,7 +555,7 @@ STATIC void emit_inline_thumb_op(emit_inline_asm_t *emit, qstr op, mp_uint_t n_a
break
;
}
}
if
(
cc
==
-
1
)
{
if
(
cc
==
(
mp_uint_t
)
-
1
)
{
goto
unknown_op
;
}
const
char
*
os
=
op_str
+
2
;
...
...
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