From b7932de6a1df9f98fff676ec00e67f9cfd806794 Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Tue, 8 Oct 2002 18:12:42 +0000 Subject: [PATCH] interpret.cc (_Jv_InterpMethod::run): Use UINT32 instead of unsigned long temporary to implement insn_iushr shifts. * interpret.cc (_Jv_InterpMethod::run): Use UINT32 instead of unsigned long temporary to implement insn_iushr shifts. From-SVN: r57936 --- libjava/ChangeLog | 5 +++++ libjava/interpret.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/libjava/ChangeLog b/libjava/ChangeLog index f28c513a8bb..2a2932c8b6f 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2002-10-08 Ulrich Weigand + + * interpret.cc (_Jv_InterpMethod::run): Use UINT32 instead of + unsigned long temporary to implement insn_iushr shifts. + 2002-10-08 Ulrich Weigand * configure.host [s390*-*]: Enable Java interpreter. diff --git a/libjava/interpret.cc b/libjava/interpret.cc index d231387dc9a..d3f919bac13 100644 --- a/libjava/interpret.cc +++ b/libjava/interpret.cc @@ -1883,7 +1883,7 @@ _Jv_InterpMethod::run (void *retp, ffi_raw *args) insn_iushr: { jint shift = (POPI() & 0x1f); - unsigned long value = POPI(); + UINT32 value = (UINT32) POPI(); PUSHI ((jint) (value >> shift)); } NEXT_INSN;