The condition should be negated.

Signed-off-by: Tomek Grabiec <tgrab...@gmail.com>
---
 vm/jni-interface.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/vm/jni-interface.c b/vm/jni-interface.c
index cc1e7ca..dca174a 100644
--- a/vm/jni-interface.c
+++ b/vm/jni-interface.c
@@ -912,12 +912,12 @@ static inline void pack_args(struct vm_method *vmm, 
unsigned long *packed_args,
        idx = 0;
 
        list_for_each_entry(arg, &vmm->args, list_node) {
-               if (arg->type_info.vm_type != J_LONG &&
-                   arg->type_info.vm_type != J_DOUBLE) {
+               if (arg->type_info.vm_type == J_LONG ||
+                   arg->type_info.vm_type == J_DOUBLE) {
                        packed_args[packed_idx++] = low_64(args[idx]);
                        packed_args[packed_idx++] = high_64(args[idx++]);
                } else {
-                       packed_args[packed_idx++] = args[idx++] & ~0ul;
+                       packed_args[packed_idx++] = low_64(args[idx++]);
                }
        }
 #else
-- 
1.6.0.4


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Jatovm-devel mailing list
Jatovm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jatovm-devel

Reply via email to