diff options
author | Elliott Hughes <enh@google.com> | 2009-12-09 00:44:31 -0800 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2009-12-09 00:44:31 -0800 |
commit | a1e5d8a2c1594f7a6ed8aca6e82b106ec8ce79d6 (patch) | |
tree | 3d10059faaea4384f64f60d35e2037da48edf963 /archive/src/main/native/zipsup.c | |
parent | 58a69a9059cbb7efd518526cf1077603eb06241a (diff) | |
download | libcore-a1e5d8a2c1594f7a6ed8aca6e82b106ec8ce79d6.zip libcore-a1e5d8a2c1594f7a6ed8aca6e82b106ec8ce79d6.tar.gz libcore-a1e5d8a2c1594f7a6ed8aca6e82b106ec8ce79d6.tar.bz2 |
Fix java.util.Formatter formatting of -0.0.
The active ingredient here is the two changes to stop comparing longValue
with doubleValue and formatting the long if the two compare equal. This
causes us to lose the sign of 0 (because there's no long -0, but -0.0d == 0).
Instead, we explicitly test for boxed Double and Float arguments (because
the number of integral types is larger, they get the "else" clause).
The other changes are just minor cosmetic changes made as I followed the code.
Bug found by jtreg, so no new test.
Diffstat (limited to 'archive/src/main/native/zipsup.c')
0 files changed, 0 insertions, 0 deletions