diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 2001-09-04 21:28:01 +0000 |
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 2001-09-04 21:28:01 +0000 |
| commit | 2505b3ed257b8ceb9e7400042415ac984b4672f7 (patch) | |
| tree | d8429c8d89fac31d0a1c7c632e6796b7deff3bb2 /lib/libc/stdlib/strtoll.c | |
| parent | 750de4f83b38f695451e725fe30d48f118e9a2e1 (diff) | |
Notes
Diffstat (limited to 'lib/libc/stdlib/strtoll.c')
| -rw-r--r-- | lib/libc/stdlib/strtoll.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/stdlib/strtoll.c b/lib/libc/stdlib/strtoll.c index 121ef55f8b4d..0ce39094e306 100644 --- a/lib/libc/stdlib/strtoll.c +++ b/lib/libc/stdlib/strtoll.c @@ -107,7 +107,7 @@ strtoll(nptr, endptr, base) * Set 'any' if any `digits' consumed; make it negative to indicate * overflow. */ - cutoff = neg ? (unsigned long long)-(LLONG_MIN + LLONG_MAX) + LLONG_MAX + cutoff = neg ? -(LLONG_MIN + LLONG_MAX) + (unsigned long long)LLONG_MAX : LLONG_MAX; cutlim = cutoff % base; cutoff /= base; |
