[PATCH] PR java/10253 (""+0), version 2

Eric Blake ebb9@email.byu.edu
Thu Apr 10 15:12:00 GMT 2003


Yesterday's version had some flaws. In part, I had mistaken the comment 
about an ASCII dependence to assume that '0' through '9' might not be 
consecutive; I was reminded that C guarantees that they are consecutive. 
  Rather, the dependence is on whether '0' == 060.

Tested on i686-pc-cygwin. OK to commit to 3.3 branch and HEAD?

2003-04-10  Eric Blake  <ebb9@email.byu.edu>

	PR java/10253:
	* parse.y (string_convert_int_cst): Always use at least one digit
	in string conversion. Remove ASCII dependence.
	(merge_string_cste): Fix merging of 3-byte UTF-8 characters.

-- 
This signature intentionally left boring.

Eric Blake             ebb9@email.byu.edu
   BYU student, free software programmer

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diff.patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20030410/a4841119/attachment.ksh>


More information about the Gcc-patches mailing list