svn commit: r211304 - head/lib/libutil
Bruce Cran
bruce at cran.org.uk
Sun Aug 15 20:16:59 UTC 2010
On Sat, 14 Aug 2010 14:34:36 +0000 (UTC)
Dag-Erling Smorgrav <des at FreeBSD.org> wrote:
> Author: des
> Date: Sat Aug 14 14:34:36 2010
> New Revision: 211304
> URL: http://svn.freebsd.org/changeset/base/211304
>
> Log:
> Simplify expand_number() by combining the (unrolled) loop with the
> switch. Since expand_number() does not accept negative numbers,
> switch from int64_t to uint64_t; this makes it easier to check for
> overflow.
> MFC after: 3 weeks
Somewhat related, there are overflow bugs in humanize_number - for
example df(1) fails to display space from a 100PB filesystem
correctly.
--
Bruce Cran
More information about the svn-src-all
mailing list