* expr.c (operand): Check more correctly that there is no advance

in operand after atof_generic in order to decide "is it label 0f
	or floating point number?".
This commit is contained in:
Vladimir Makarov 1998-08-20 18:28:07 +00:00
parent bb89d84ac7
commit ff0f011267
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
1998-08-20 Vladimir N. Makarov <vmakarov@cygnus.com>
* expr.c (operand): Check more correctly that there is no advance
in operand after atof_generic in order to decide "is it label 0f
or floating point number?".
1998-08-20 Vladimir N. Makarov <vmakarov@cygnus.com>
* expr.c (operand): Check correctly that there is no advance in

View File

@ -924,7 +924,7 @@ operand (expressionP)
{
case 0:
case ERROR_EXPONENT_OVERFLOW:
if (cp[-1] == 'f' || cp[-1] == 'b')
if (cp == input_line_pointer + 1)
/* looks like a difference expression */
goto is_0f_label;
else