[Nice-commit] Nice/src/gnu/bytecode Type.java,1.15,1.16
Brought to you by:
bonniot
From: <ar...@us...> - 2003-11-23 19:15:18
|
Update of /cvsroot/nice/Nice/src/gnu/bytecode In directory sc8-pr-cvs1:/tmp/cvs-serv32152/F:/nice/src/gnu/bytecode Modified Files: Type.java Log Message: Fixed bug in bytecode.Type.lowestCommonSuperType. Index: Type.java =================================================================== RCS file: /cvsroot/nice/Nice/src/gnu/bytecode/Type.java,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** Type.java 25 Aug 2003 22:30:00 -0000 1.15 --- Type.java 23 Nov 2003 19:15:15 -0000 1.16 *************** *** 470,473 **** --- 470,477 ---- else if (t2.isSubtype(t1)) return t1; + else if (t1 == char_type && t2.isSubtype(int_type)) + return int_type; + else if (t2 == char_type && t1.isSubtype(int_type)) + return int_type; else { |