From: Aleksey Demakov Date: Sat, 19 Apr 2008 13:48:50 +0000 (+0000) Subject: fix the type of dest value of jit_insn_sign X-Git-Tag: before.move.to.git~89 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=e22549c927612be91f3d5ccc50ec7b9d046451a7;p=francis%2Flibjit.git fix the type of dest value of jit_insn_sign --- diff --git a/ChangeLog b/ChangeLog index cec98a4..ecce64a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-04-19 Klaus Treichel + + * jit/jit-insn.c (jit_insn_sign): the dest value of the sign insn + has to be int regardless of the argument type. + 2008-04-13 Klaus Treichel * include/jit/Makefile.am: diff --git a/jit/jit-insn.c b/jit/jit-insn.c index 6e39363..3386752 100644 --- a/jit/jit-insn.c +++ b/jit/jit-insn.c @@ -3502,7 +3502,7 @@ jit_value_t jit_insn_sign(jit_function_t func, jit_value_t value1) value1 = jit_insn_convert(func, value1, result_type, 0); if(_jit_opcode_is_supported(oper)) { - return apply_unary(func, oper, value1, result_type); + return apply_unary(func, oper, value1, jit_type_int); } else {