This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch: PR java/10253 (string concatenation with integer 0constant)
- From: Andreas Schwab <schwab at suse dot de>
- To: Eric Blake <ebb9 at email dot byu dot edu>
- Cc: gnustuff at thisiscool dot com, GCJ Patches <java-patches at gcc dot gnu dot org>,gcc-patches at gcc dot gnu dot org
- Date: Wed, 09 Apr 2003 17:04:42 +0200
- Subject: Re: Patch: PR java/10253 (string concatenation with integer 0constant)
- References: <MKKI2YIDHGVQ7OJA5A8UT2XKFTQUOC9.3e942c90@p733><3E943181.70008@email.byu.edu>
Eric Blake <ebb9 at email dot byu dot edu> writes:
|> @@ -12544,12 +12545,12 @@
|> }
|> }
|>
|> - /* FIXME: ASCII assumption. */
|> - *p-- = '0' + acc;
|> + *p-- = "0123456789"[acc];
Note that the C standard requires that these two lines are equivalent.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab at suse dot de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."