Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Aug 2010 14:50:03 +0000 (UTC)
From:      Dag-Erling Smorgrav <des@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/lib/libutil expand_number.c
Message-ID:  <201008151450.o7FEoKBI042233@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
des         2010-08-15 14:50:03 UTC

  FreeBSD src repository

  Modified files:
    lib/libutil          expand_number.c 
  Log:
  SVN rev 211337 on 2010-08-15 14:50:03Z by des
  
  Fix the overflow test.  It is possible for the result of an
  overflowing shift to be larger than the original value, e.g.
  
           (uint64_t)1 << 53 = 0x20000000000000
   ((uint64_t)1 << 53) << 10 = 0x8000000000000000
  
  Revision  Changes    Path
  1.6       +1 -1      src/lib/libutil/expand_number.c



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