Subject: PR/31306 CVS commit: src/sys/arch
To: None <,,>
From: Matthias Drochner <>
List: netbsd-bugs
Date: 08/31/2007 16:35:03
The following reply was made to PR lib/31306; it has been noted by GNATS.

From: Matthias Drochner <>
Subject: PR/31306 CVS commit: src/sys/arch
Date: Fri, 31 Aug 2007 16:24:27 +0000 (UTC)

 Module Name:	src
 Committed By:	drochner
 Date:		Fri Aug 31 16:24:27 UTC 2007
 Modified Files:
 	src/sys/arch/alpha/include: int_limits.h limits.h
 	src/sys/arch/amd64/include: int_limits.h limits.h
 	src/sys/arch/arm/include: int_limits.h limits.h
 	src/sys/arch/hppa/include: int_limits.h limits.h
 	src/sys/arch/i386/include: int_limits.h limits.h
 	src/sys/arch/ia64/include: int_limits.h limits.h
 	src/sys/arch/m68k/include: int_limits.h limits.h
 	src/sys/arch/mips/include: int_limits.h limits.h
 	src/sys/arch/pc532/include: int_limits.h limits.h
 	src/sys/arch/powerpc/include: int_limits.h limits.h
 	src/sys/arch/sh3/include: int_limits.h limits.h
 	src/sys/arch/sparc/include: int_limits.h limits.h
 	src/sys/arch/vax/include: int_limits.h limits.h
 Log Message:
 Fix definitions of UCHAR_MAX/USHRT_MAX and related
 types. C99 requires that these definitions promote to (signed/unsigned)
 integer the same way as the types the definition is for. And since
 unsigned char/short fit into an "int" on all our archs and thus promote
 to signed int, the definitions must not be unsigned.
 Fixes PR lib/31306 by Neil Booth.
 To generate a diff of this commit:
 cvs rdiff -r1.4 -r1.5 src/sys/arch/alpha/include/int_limits.h
 cvs rdiff -r1.10 -r1.11 src/sys/arch/alpha/include/limits.h
 cvs rdiff -r1.3 -r1.4 src/sys/arch/amd64/include/int_limits.h
 cvs rdiff -r1.7 -r1.8 src/sys/arch/amd64/include/limits.h
 cvs rdiff -r1.5 -r1.6 src/sys/arch/arm/include/int_limits.h
 cvs rdiff -r1.6 -r1.7 src/sys/arch/arm/include/limits.h
 cvs rdiff -r1.3 -r1.4 src/sys/arch/hppa/include/int_limits.h
 cvs rdiff -r1.6 -r1.7 src/sys/arch/hppa/include/limits.h
 cvs rdiff -r1.5 -r1.6 src/sys/arch/i386/include/int_limits.h
 cvs rdiff -r1.18 -r1.19 src/sys/arch/i386/include/limits.h
 cvs rdiff -r1.1 -r1.2 src/sys/arch/ia64/include/int_limits.h
 cvs rdiff -r1.2 -r1.3 src/sys/arch/ia64/include/limits.h
 cvs rdiff -r1.4 -r1.5 src/sys/arch/m68k/include/int_limits.h
 cvs rdiff -r1.17 -r1.18 src/sys/arch/m68k/include/limits.h
 cvs rdiff -r1.5 -r1.6 src/sys/arch/mips/include/int_limits.h
 cvs rdiff -r1.20 -r1.21 src/sys/arch/mips/include/limits.h
 cvs rdiff -r1.6 -r1.7 src/sys/arch/pc532/include/int_limits.h
 cvs rdiff -r1.16 -r1.17 src/sys/arch/pc532/include/limits.h
 cvs rdiff -r1.5 -r1.6 src/sys/arch/powerpc/include/int_limits.h
 cvs rdiff -r1.13 -r1.14 src/sys/arch/powerpc/include/limits.h
 cvs rdiff -r1.5 -r1.6 src/sys/arch/sh3/include/int_limits.h
 cvs rdiff -r1.8 -r1.9 src/sys/arch/sh3/include/limits.h
 cvs rdiff -r1.4 -r1.5 src/sys/arch/sparc/include/int_limits.h
 cvs rdiff -r1.16 -r1.17 src/sys/arch/sparc/include/limits.h
 cvs rdiff -r1.4 -r1.5 src/sys/arch/vax/include/int_limits.h
 cvs rdiff -r1.14 -r1.15 src/sys/arch/vax/include/limits.h
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.