projects
/
org.ibex.classgen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c8fb59
)
off by one SIPUSH error (not a bug)
author
brian
<brian@brianweb.net>
Fri, 28 May 2004 17:03:53 +0000
(17:03 +0000)
committer
brian
<brian@brianweb.net>
Fri, 28 May 2004 17:03:53 +0000
(17:03 +0000)
darcs-hash:
20040528170353
-24bed-
aaa611752de7596972ff08cfb5fe9be044cc4b42
.gz
src/org/ibex/classgen/MethodGen.java
patch
|
blob
|
history
diff --git
a/src/org/ibex/classgen/MethodGen.java
b/src/org/ibex/classgen/MethodGen.java
index
c49957b
..
de4196b
100644
(file)
--- a/
src/org/ibex/classgen/MethodGen.java
+++ b/
src/org/ibex/classgen/MethodGen.java
@@
-129,7
+129,7
@@
public class MethodGen implements CGConst {
case 5: op = ICONST_5; break OUTER;
}
if(n >= -128 && n <= 127) { op = BIPUSH; arg = N(n); }
- else if(n >= -32767 && n <= 32767) { op = SIPUSH; arg = N(n); }
+ else if(n >= -32768 && n <= 32767) { op = SIPUSH; arg = N(n); }
else { arg = cp.add(N(n)); }
break;
case ILOAD: case ISTORE: case LLOAD: case LSTORE: case FLOAD: