Update of /cvsroot/nice/Nice/src/gnu/expr
In directory sc8-pr-cvs1:/tmp/cvs-serv5555/src/gnu/expr
Modified Files:
IncrementExp.java
Log Message:
Correctly wrap byte local variables during incrementation.
Index: IncrementExp.java
===================================================================
RCS file: /cvsroot/nice/Nice/src/gnu/expr/IncrementExp.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** IncrementExp.java 30 May 2002 13:45:25 -0000 1.4
--- IncrementExp.java 26 Aug 2003 00:45:13 -0000 1.5
***************
*** 6,10 ****
* Pre/post incrementation of a local variable.
*
! * @author Daniel Bonniot (d.b...@ma...)
*/
--- 6,10 ----
* Pre/post incrementation of a local variable.
*
! * @author Daniel Bonniot (bo...@us...)
*/
***************
*** 45,49 ****
code.emitLoad(var);
! if (var.getType().promote() == Type.int_type)
code.emitInc(var, increment);
else
--- 45,49 ----
code.emitLoad(var);
! if (var.getType() == Type.int_type)
code.emitInc(var, increment);
else
|