On Sat, 14 Aug 2010 14:34:36 +0000 (UTC)
Dag-Erling Smorgrav <d...@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
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to