Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Aug 2010 14:34:36 +0000 (UTC)
From:      Dag-Erling Smorgrav <des@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/lib/libutil expand_number.c libutil.h
Message-ID:  <201008141434.o7EEYr8f044245@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
des         2010-08-14 14:34:36 UTC

  FreeBSD src repository

  Modified files:
    lib/libutil          expand_number.c libutil.h 
  Log:
  SVN rev 211304 on 2010-08-14 14:34:36Z by des
  
  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
  
  Revision  Changes    Path
  1.5       +26 -26    src/lib/libutil/expand_number.c
  1.53      +1 -1      src/lib/libutil/libutil.h



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008141434.o7EEYr8f044245>