]> git.unchartedbackwaters.co.uk Git - francis/libjit.git/commitdiff
fix the type of dest value of jit_insn_sign
authorAleksey Demakov <ademakov@gmail.com>
Sat, 19 Apr 2008 13:48:50 +0000 (13:48 +0000)
committerAleksey Demakov <ademakov@gmail.com>
Sat, 19 Apr 2008 13:48:50 +0000 (13:48 +0000)
ChangeLog
jit/jit-insn.c

index cec98a4bc7c7682e250a796d8cad2f817371f9a3..ecce64a0819eaf4258da6795c977f97e86d844b1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-04-19  Klaus Treichel  <ktreichel@web.de>
+
+       * 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  <ktreichel@web.de>
 
        * include/jit/Makefile.am:
index 6e39363d575c0d2b7a854eb88ce15b88cd5f000c..33867523614c1fa3b97e156eaae8f80a9b97436b 100644 (file)
@@ -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
        {