summaryrefslogtreecommitdiff
path: root/libjava/verify.cc
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2001-11-19 01:04:15 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2001-11-19 01:04:15 +0000
commit19520fde9e0743596b28d638a319e2aefe23aa38 (patch)
treed1960b38cca3ffbcd273190bc8285e3067560342 /libjava/verify.cc
parenta5a42e04812a6eab9c68e9802936c396bd9cbc77 (diff)
downloadgcc-19520fde9e0743596b28d638a319e2aefe23aa38.tar.gz
* verify.cc (_Jv_BytecodeVerifier::get_ushort): Use `jint' for
temporary values. (_Jv_BytecodeVerifier::get_short): Likewise. (_Jv_BytecodeVerifier::get_int): Likewise. (_Jv_BytecodeVerifier::check_return_type): Reverse ordering of `compatible' call. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47161 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/verify.cc')
-rw-r--r--libjava/verify.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/libjava/verify.cc b/libjava/verify.cc
index 5d8fd809de7..cc1c5c4fb3d 100644
--- a/libjava/verify.cc
+++ b/libjava/verify.cc
@@ -946,25 +946,25 @@ private:
jint get_ushort ()
{
- jbyte b1 = get_byte ();
- jbyte b2 = get_byte ();
+ jint b1 = get_byte ();
+ jint b2 = get_byte ();
return (jint) ((b1 << 8) | b2) & 0xffff;
}
jint get_short ()
{
- jbyte b1 = get_byte ();
- jbyte b2 = get_byte ();
+ jint b1 = get_byte ();
+ jint b2 = get_byte ();
jshort s = (b1 << 8) | b2;
return (jint) s;
}
jint get_int ()
{
- jbyte b1 = get_byte ();
- jbyte b2 = get_byte ();
- jbyte b3 = get_byte ();
- jbyte b4 = get_byte ();
+ jint b1 = get_byte ();
+ jint b2 = get_byte ();
+ jint b3 = get_byte ();
+ jint b4 = get_byte ();
return (b1 << 24) | (b2 << 16) | (b3 << 8) | b4;
}
@@ -1644,10 +1644,10 @@ private:
return get_one_type (p);
}
- void check_return_type (type expected)
+ void check_return_type (type onstack)
{
type rt = compute_return_type (current_method->self->signature);
- if (! expected.compatible (rt))
+ if (! rt.compatible (onstack))
verify_fail ("incompatible return type", start_PC);
}