[6242] in Athena Bugs

home help back first fref pref prev next nref lref last post

Saber msg: v2.1 (4/24/89 m1-238-4 vax Unix 4042 0)

daemon@ATHENA.MIT.EDU (lerman@ATHENA.MIT.EDU)
Fri Oct 19 11:11:50 1990

From: lerman@ATHENA.MIT.EDU
Date: Fri, 19 Oct 90 11:11:33 -0400
To: bugs@ATHENA.MIT.EDU
Cc: lerman@ATHENA.MIT.EDU

Even when the ansi option is set, the sizeof operator produces
an in in Sber C. In Kernighan and Ritchie (Second Edition), page 135,
it clearly states that sizeof is supposed to yield an unsigned value
of type size_t.  This should be an unsigned int, not an int.  This
leads to a warning when compiling ANSI compliant code that, for
example, uses malloc() if you use ANSI headers that define size_t to
be unsigned integers.
	Please let me know if this is received.

home help back first fref pref prev next nref lref last post