Subject: CVS commit: src/sys/sys
To: None <source-changes@NetBSD.org>
From: Christos Zoulas <christos@netbsd.org>
List: source-changes
Date: 01/02/2005 18:33:14
Module Name:	src
Committed By:	christos
Date:		Sun Jan  2 18:33:14 UTC 2005

Modified Files:
	src/sys/sys: types.h

Log Message:
Cast the sizeof operator to unsigned int in the __NFDBITS macro because it
is used as the RHS of a << operator. On machines where size_t is unsigned
long, and _LP64, we effectively get int32 << uint64 which is handled
differently in ansi c than K&R. In K&R the int32 would get promoted.


To generate a diff of this commit:
cvs rdiff -r1.63 -r1.64 src/sys/sys/types.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.