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

From-SVN: r2318
This commit is contained in:
Richard Stallman 1992-10-04 04:58:30 +00:00
parent bf15a311e9
commit be63d91206

View File

@ -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))