Skip to content

Commit 6eb7530

Browse files
committed
py: In emitinlinethumb, use qstr_data instead of qstr_str and strlen.
1 parent 55fe92b commit 6eb7530

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

py/emitinlinethumb.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,8 +363,8 @@ STATIC void emit_inline_thumb_op(emit_inline_asm_t *emit, qstr op, mp_uint_t n_a
363363
// three_args =
364364
// "subs", RLO, RLO, I3, asm_thumb_subs_reg_reg_i3
365365

366-
const char *op_str = qstr_str(op);
367-
mp_uint_t op_len = strlen(op_str);
366+
mp_uint_t op_len;
367+
const char *op_str = (const char*)qstr_data(op, &op_len);
368368

369369
if (n_args == 0) {
370370
if (strcmp(op_str, "nop") == 0) {

0 commit comments

Comments
 (0)