OSDN Git Service

Fix Long.toBinaryString, Long.toHexString, and Long.toOctalString for negative values.
authorElliott Hughes <enh@google.com>
Sun, 20 Dec 2009 07:39:53 +0000 (23:39 -0800)
committerElliott Hughes <enh@google.com>
Sun, 20 Dec 2009 07:39:53 +0000 (23:39 -0800)
commitc37803833c796ce4209a4d32c42fbfeae3a516a7
treec7fd3c6f1138a633211f698271c1e55d13812e15
parentdd0155c7929b938ceb225515cf48f3bb455bd539
Fix Long.toBinaryString, Long.toHexString, and Long.toOctalString for negative values.

Although (int) -1 == (long) -1, Integer.toXString produces a shorter result than
Long.toXString should.
libcore/luni/src/main/java/java/lang/Long.java