py: In emitinlinethumb, use qstr_data instead of qstr_str and strlen.

pull/1180/head
Damien George 2015-04-11 21:53:39 +01:00
rodzic 55fe92bb8f
commit 6eb7530083
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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) {