delorie.com/archives/browse.cgi | search |
Date: | Sun, 27 May 2001 16:40:47 +0300 |
From: | "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il> |
Sender: | halo1 AT zahav DOT net DOT il |
To: | Florian Xaver <dos DOT fire AT aon DOT at> |
Message-Id: | <4331-Sun27May2001164046+0300-eliz@is.elta.co.il> |
X-Mailer: | Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.9 |
CC: | djgpp AT delorie DOT com |
In-reply-to: | <1104_990965387@default> (message from Florian Xaver on Sun, 27 |
May 2001 12:09:47 GMT) | |
Subject: | Re: signed or unsigned |
References: | <1104_990965387 AT default> |
Reply-To: | djgpp AT delorie DOT com |
Errors-To: | nobody AT delorie DOT com |
X-Mailing-List: | djgpp AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
> From: Florian Xaver <dos DOT fire AT aon DOT at> > Newsgroups: comp.os.msdos.djgpp > Date: Sun, 27 May 2001 12:09:47 GMT > > If I only write > > int i; > > Is int signed or unsigned Signed, according to the C standard. > Where can I change it (gcc - parameters)? You can't, AFAIK. Why would you need to? Just like mixing sugned and unsigned is looking for trouble, so, too, using unsigned where signed should have been used is looking for trouble of similar kind. If someone wrote code to work with sugned int's, you had better not change that to use unsigned, because the code will most probably break.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |