Skip to content

Commit

Permalink
#225 #172 fix type assertion inconsistencies
Browse files Browse the repository at this point in the history
  • Loading branch information
dibyendumajumdar committed May 22, 2021
1 parent ad47f6d commit dc3a5c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ravicomp/src/codegen.c
Original file line number Diff line number Diff line change
Expand Up @@ -2230,7 +2230,7 @@ static int emit_op_movif(struct function *fn, Instruction *insn)
emit_reg_accessor(fn, operand, 0);
raviX_buffer_add_string(&fn->body, ";\n");
raviX_buffer_add_string(&fn->body, " lua_Number n = 0.0;\n");
raviX_buffer_add_string(&fn->body, " if (!tonumber(rb, &n)) {\n");
raviX_buffer_add_string(&fn->body, " if (!tonumberns(rb, n)) {\n");
raviX_buffer_add_fstring(&fn->body, " error_code = %d;\n", Error_number_expected);
raviX_buffer_add_string(&fn->body, " goto Lraise_error;\n");
raviX_buffer_add_string(&fn->body, " }\n");
Expand Down

0 comments on commit dc3a5c1

Please sign in to comment.