aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1999-09-11 14:24:59 +0000
committerIan Lance Taylor <ian@airs.com>1999-09-11 14:24:59 +0000
commitfa16d38700e5fbbeb00dbdbad7567366e97e154f (patch)
tree44c5a25afb766d7ef72a43864677c96f148d8c5e
parent7b50b349e217f7c560ea8dac8aa67655a7d0e8d3 (diff)
downloadgdb-fa16d38700e5fbbeb00dbdbad7567366e97e154f.zip
gdb-fa16d38700e5fbbeb00dbdbad7567366e97e154f.tar.gz
gdb-fa16d38700e5fbbeb00dbdbad7567366e97e154f.tar.bz2
1999-09-11 Donn Terry <donn@interix.com>
* expr.c (integer_constant): Correct too_many_digits calculation in base 10 case.
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/expr.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index dae2321..9ec9484 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+1999-09-11 Donn Terry <donn@interix.com>
+
+ * expr.c (integer_constant): Correct too_many_digits calculation
+ in base 10 case.
+
1999-09-09 Andreas Schwab <schwab@suse.de>
* doc/c-arm.texi: Fix arguments of @var to not contain
diff --git a/gas/expr.c b/gas/expr.c
index c50e2c2..fcc633f 100644
--- a/gas/expr.c
+++ b/gas/expr.c
@@ -389,7 +389,7 @@ integer_constant (radix, expressionP)
break;
case 10:
maxdig = radix = 10;
- too_many_digits = (valuesize + 12) / 4; /* very rough */
+ too_many_digits = (valuesize + 11) / 4; /* very rough */
}
#undef valuesize
start = input_line_pointer;