Signed-off-by: Tomek Grabiec <[email protected]>
---
jit/ostack-bc.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/jit/ostack-bc.c b/jit/ostack-bc.c
index 5338df5..ec957cf 100644
--- a/jit/ostack-bc.c
+++ b/jit/ostack-bc.c
@@ -43,10 +43,11 @@ dup_expr(struct parse_context *ctx, struct expression *expr)
struct statement *stmt;
struct var_info *tmp_low, *tmp_high = NULL;
- tmp_low = get_var(ctx->cu, J_INT);
-
if (expr->vm_type == J_LONG) {
+ tmp_low = get_var(ctx->cu, J_INT);
tmp_high = get_var(ctx->cu, J_INT);
+ } else {
+ tmp_low = get_var(ctx->cu, expr->vm_type);
}
dest = temporary_expr(expr->vm_type, tmp_high, tmp_low);
--
1.6.0.6
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Jatovm-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jatovm-devel