aboutsummaryrefslogtreecommitdiff
path: root/py/emitinlinethumb.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-04-11 21:53:39 +0100
committerDamien George <damien.p.george@gmail.com>2015-04-11 21:53:39 +0100
commit6eb753008334cd93978a756df0b3630701fdaca6 (patch)
tree2f6b2c20b0e938c01ed20fdb42c843c7515f18ef /py/emitinlinethumb.c
parent55fe92bb8f26d93015f87ceff2ac657a135b8ee4 (diff)
py: In emitinlinethumb, use qstr_data instead of qstr_str and strlen.
Diffstat (limited to 'py/emitinlinethumb.c')
-rw-r--r--py/emitinlinethumb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/emitinlinethumb.c b/py/emitinlinethumb.c
index 59cdc3aca..bc120e8be 100644
--- a/py/emitinlinethumb.c
+++ b/py/emitinlinethumb.c
@@ -363,8 +363,8 @@ STATIC void emit_inline_thumb_op(emit_inline_asm_t *emit, qstr op, mp_uint_t n_a
// three_args =
// "subs", RLO, RLO, I3, asm_thumb_subs_reg_reg_i3
- const char *op_str = qstr_str(op);
- mp_uint_t op_len = strlen(op_str);
+ mp_uint_t op_len;
+ const char *op_str = (const char*)qstr_data(op, &op_len);
if (n_args == 0) {
if (strcmp(op_str, "nop") == 0) {