diff options
author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-02-19 03:57:21 +0000 |
---|---|---|
committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-02-19 03:57:21 +0000 |
commit | fa8f03c4c92d2f2b4c1edce23065edaab03600a7 (patch) | |
tree | fb478d9a5ba65e65e1aaf8e6479c51f09ef1961b /libjava/verify.cc | |
parent | 9fcb4fb7f41fc0a49989bf67e6c998d37d8e3b10 (diff) | |
download | gcc-fa8f03c4c92d2f2b4c1edce23065edaab03600a7.tar.gz |
PR java/20056:
* verify.cc (type::equals): Fixed test.
* testsuite/libjava.lang/PR20056.out: New file.
* testsuite/libjava.lang/PR20056.java: New file.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@95266 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/verify.cc')
-rw-r--r-- | libjava/verify.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libjava/verify.cc b/libjava/verify.cc index 9df031634fa..a8093070e96 100644 --- a/libjava/verify.cc +++ b/libjava/verify.cc @@ -754,10 +754,10 @@ private: bool equals (const type &other, _Jv_BytecodeVerifier *vfy) { // Only works for reference types. - if (key != reference_type - || key != uninitialized_reference_type - || other.key != reference_type - || other.key != uninitialized_reference_type) + if ((key != reference_type + && key != uninitialized_reference_type) + || (other.key != reference_type + && other.key != uninitialized_reference_type)) return false; // Only for single-valued types. if (klass->ref_next || other.klass->ref_next) |