* net/loveruby/cflat/utils/TextUtils.java (toUnsigned): simplify.

git-svn-id: file:///Users/aamine/c/gitwork/public/cbc/trunk@3998 1b9489fe-b721-0410-924e-b54b9192deb8
This commit is contained in:
Minero Aoki 2008-09-06 17:57:27 +00:00
parent 554e1e9f04
commit a6c6112b29
3 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
Sun Sep 7 02:57:24 2008 Minero Aoki <aamine@loveruby.net>
* net/loveruby/cflat/utils/TextUtils.java (toUnsigned): simplify.
Sun Sep 7 02:46:14 2008 Minero Aoki <aamine@loveruby.net>
* net/loveruby/cflat/compiler/Compiler.java: use #dumpString.

2
ToDo
View File

@ -4,7 +4,6 @@
* use %rax for address calculation
* prohibit multi-dimension array without size
* dump UTF-8 string byte by byte.
* sizeof
* simple vararg retrieve (get vararg address)
* easy peephole optimization
@ -213,3 +212,4 @@
- test switch stmt
- remove FIXME from Entity.java
- implement cast
- dump UTF-8 string byte by byte.

View File

@ -39,7 +39,7 @@ public class TextUtils {
}
static protected int toUnsigned(byte b) {
return (b >= 0) ? (int)b : 256 + (int)b;
return b >= 0 ? b : 256 + b;
}
static public boolean isPrintable(int c) {