mirror of https://github.com/aamine/cbc
* 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:
parent
554e1e9f04
commit
a6c6112b29
|
@ -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
2
ToDo
|
@ -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.
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue