diff options
author | André Goddard Rosa <andre.goddard@gmail.com> | 2010-02-05 18:32:52 -0200 |
---|---|---|
committer | Jean-Baptiste Queru <jbq@google.com> | 2010-04-29 07:29:06 -0700 |
commit | e734769276045c0cb89d4620fdd4ef35a0e6c335 (patch) | |
tree | 8b7cdc163f1dce70efb9f5221e6e0b845a07c368 /libc/stdlib/strtoimax.c | |
parent | 1698d9ebfc7e27271852a1fdf305a2ac37b3ebe4 (diff) | |
download | bionic-e734769276045c0cb89d4620fdd4ef35a0e6c335.zip bionic-e734769276045c0cb89d4620fdd4ef35a0e6c335.tar.gz bionic-e734769276045c0cb89d4620fdd4ef35a0e6c335.tar.bz2 |
improve readability of stdlib: fix indentation and remove trailing spaces
Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
Change-Id: I7dd90a0816b5376ffc1de4499d56935e0bd574a1
Diffstat (limited to 'libc/stdlib/strtoimax.c')
-rw-r--r-- | libc/stdlib/strtoimax.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libc/stdlib/strtoimax.c b/libc/stdlib/strtoimax.c index a742eb9..0b4323d 100644 --- a/libc/stdlib/strtoimax.c +++ b/libc/stdlib/strtoimax.c @@ -103,7 +103,7 @@ strtoimax(const char *nptr, char **endptr, int base) cutoff = INTMAX_MAX / x; \ }; \ break - + switch (base) { case 4: if (neg) { @@ -118,13 +118,13 @@ strtoimax(const char *nptr, char **endptr, int base) CASE_BASE(8); CASE_BASE(10); CASE_BASE(16); - default: + default: cutoff = neg ? INTMAX_MIN : INTMAX_MAX; cutlim = cutoff % base; cutoff /= base; } #undef CASE_BASE - + if (neg) { if (cutlim > 0) { cutlim -= base; |