🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #2201

Re: this unsigned business

#2201
From: Steve Clamage
Date: Sat, 03 Oct 1992 16:26
16 lines
865 bytes
phil@ux1.cso.uiuc.edu (Phil Howard) writes:

|friedl@mtndew.Tustin.CA.US (Stephen Friedl) writes:

|>		if ( (unsigned int) vu > 100)
|>			printf("value out of range!\n");

|Is the presentation of "100" as a constant guaranteed to be correct, or
|might it be ever so slightly better to use "100U"?

It can't possibly make any difference.  100 and 100U are required to
have the same number of bits and the same bit pattern.
-- 

Steve Clamage, TauMetric Corp, steve@taumet.com
Vice Chair, ANSI C++ Committee, X3J16
Technical Details
Message-ID: <1992Oct3.162625.7075@taumet.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!taumet!steve
References: <711@mtndew.Tustin.CA.US> <BvIIox.8C6@ux1.cso.uiuc.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c
Path: arc1-ca.pugleaf.net!sparky!uunet!taumet!steve
From: steve@taumet.com (Steve Clamage)
Subject: Re: this unsigned business
Message-ID: <1992Oct3.162625.7075@taumet.com>
Organization: TauMetric Corporation
References: <711@mtndew.Tustin.CA.US> <BvIIox.8C6@ux1.cso.uiuc.edu>
Date: Sat, 3 Oct 1992 16:26:25 GMT
Lines: 16