From e22549c927612be91f3d5ccc50ec7b9d046451a7 Mon Sep 17 00:00:00 2001 From: Aleksey Demakov Date: Sat, 19 Apr 2008 13:48:50 +0000 Subject: [PATCH] fix the type of dest value of jit_insn_sign --- ChangeLog | 5 +++++ jit/jit-insn.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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 {