Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Jan 2011 11:13:34 +0000 (UTC)
From:      Tijl Coosemans <tijl@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/amd64/include _limits.h src/sys/arm/include _limits.h src/sys/i386/include _limits.h src/sys/ia64/include _limits.h src/sys/mips/include _limits.h src/sys/powerpc/include _limits.h src/sys/sparc64/include _limits.h src/sys/sun4v/include ...
Message-ID:  <201101081114.p08BEGUt093390@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
tijl        2011-01-08 11:13:34 UTC

  FreeBSD src repository

  Modified files:
    sys/amd64/include    _limits.h 
    sys/arm/include      _limits.h 
    sys/i386/include     _limits.h 
    sys/ia64/include     _limits.h 
    sys/mips/include     _limits.h 
    sys/powerpc/include  _limits.h 
    sys/sparc64/include  _limits.h 
    sys/sun4v/include    _limits.h 
  Log:
  SVN rev 217145 on 2011-01-08 11:13:34Z by tijl
  
  Fix types of some values in machine/_limits.h.
  
  On some architectures UCHAR_MAX and USHRT_MAX had type unsigned int.
  However, lacking integer suffixes for types smaller than int, their type
  should correspond to that of an object of type unsigned char (or short)
  when used in an expression with objects of type int. In that case unsigned
  char (short) are promoted to int (i.e. signed) so the type of UCHAR_MAX and
  USHRT_MAX should also be int.
  
  Where MIN/MAX constants implicitly have the correct type the suffix has
  been removed.
  
  While here, correct some comments.
  
  Reviewed by:    bde
  Approved by:    kib (mentor)
  
  Revision  Changes    Path
  1.12      +7 -12     src/sys/amd64/include/_limits.h
  1.11      +1 -3      src/sys/arm/include/_limits.h
  1.30      +2 -7      src/sys/i386/include/_limits.h
  1.15      +7 -9      src/sys/ia64/include/_limits.h
  1.4       +4 -6      src/sys/mips/include/_limits.h
  1.32      +4 -6      src/sys/powerpc/include/_limits.h
  1.15      +7 -9      src/sys/sparc64/include/_limits.h
  1.2       +7 -9      src/sys/sun4v/include/_limits.h



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