Commit be63d912 by Richard Stallman

(readescape): No warning if digits in \x are all 0's.

From-SVN: r2318
parent bf15a311
......@@ -845,6 +845,9 @@ readescape (ignore_ptr)
}
if (! nonnull)
error ("\\x used with no following hex digits");
else if (count == 0)
/* Digits are all 0's. Ok. */
;
else if ((count - 1) * 4 >= TYPE_PRECISION (integer_type_node)
|| (count > 1
&& ((1 << (TYPE_PRECISION (integer_type_node) - (count - 1) * 4))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment