🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #2187

Re: this unsigned business

#2187
From: Henry Spencer
Date: Fri, 02 Oct 1992 15:46
10 lines
887 bytes
In article <711@mtndew.Tustin.CA.US> friedl@mtndew.Tustin.CA.US (Stephen Friedl) writes:
>		if ( (unsigned int) vu > 100)

This is a bit arcane, but it is portable.  Both in a legalistic sense --
it is legal and proper ANSI C -- and in a practical sense -- this kind of
code has been in use for a long time (notably in the Unix kernel) and a
C compiler that botched it should have been noticed and fixed.
-- 
There is nothing wrong with making      | Henry Spencer @ U of Toronto Zoology
mistakes, but... make *new* ones. -D.Sim|  henry@zoo.toronto.edu  utzoo!henry
Technical Details
Message-ID: <BvI3sp.CD5@zoo.toronto.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!utcsri!utzoo!henry
References: <711@mtndew.Tustin.CA.US>

Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c
Path: arc1-ca.pugleaf.net!sparky!uunet!utcsri!utzoo!henry
From: henry@zoo.toronto.edu (Henry Spencer)
Subject: Re: this unsigned business
Message-ID: <BvI3sp.CD5@zoo.toronto.edu>
Date: Fri, 2 Oct 1992 15:46:00 GMT
References: <711@mtndew.Tustin.CA.US>
Organization: U of Toronto Zoology
Lines: 10