[Nice-commit] Nice/src/gnu/expr Compilation.java,1.20,1.21
Brought to you by:
bonniot
From: <bo...@us...> - 2004-01-17 17:13:38
|
Update of /cvsroot/nice/Nice/src/gnu/expr In directory sc8-pr-cvs1:/tmp/cvs-serv12991/src/gnu/expr Modified Files: Compilation.java Log Message: Make sure byte and short object literals are represented as Integer (closes #871232). Index: Compilation.java =================================================================== RCS file: /cvsroot/nice/Nice/src/gnu/expr/Compilation.java,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** Compilation.java 3 Nov 2003 18:32:07 -0000 1.20 --- Compilation.java 17 Jan 2004 17:13:36 -0000 1.21 *************** *** 339,343 **** } else ! literal = new Literal (value, Type.make(value.getClass()), this); } return literal; --- 339,349 ---- } else ! { ! Type literalType = Type.make(value.getClass()); ! if (literalType == Type.byte_ctype || ! literalType == Type.short_ctype) ! literalType = Type.int_ctype; ! literal = new Literal (value, literalType, this); ! } } return literal; |