2009/8/4 Tomek Grabiec <tgrab...@gmail.com>: > We should get the register of the same type that the dupped expression > which is not always J_INT. > > Signed-off-by: Tomek Grabiec <tgrab...@gmail.com> > --- > jit/ostack-bc.c | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/jit/ostack-bc.c b/jit/ostack-bc.c > index 5338df5..ea7f52c 100644 > --- a/jit/ostack-bc.c > +++ b/jit/ostack-bc.c > @@ -43,10 +43,10 @@ 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); > + tmp_low = get_var(ctx->cu, expr->vm_type); > > if (expr->vm_type == J_LONG) { > - tmp_high = get_var(ctx->cu, J_INT); > + tmp_high = get_var(ctx->cu, expr->vm_type); > } > > dest = temporary_expr(expr->vm_type, tmp_high, tmp_low); > -- > 1.6.0.6 > >
Trash that, it's wrong too -- Tomek Grabiec ------------------------------------------------------------------------------ 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 Jatovm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jatovm-devel