summaryrefslogtreecommitdiff
path: root/intl/plural.y
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-01-05 06:18:46 +0000
committerUlrich Drepper <drepper@redhat.com>2001-01-05 06:18:46 +0000
commiteda6c725e7a3d6f5d78d5ae171d395cfd39b44bc (patch)
tree75fd1382a0303ff2d1884fe991615d899d7fb9a2 /intl/plural.y
parent61402fd68972a73caa984ab03199bf05e18b73e5 (diff)
Update.
2001-01-04 Ulrich Drepper <drepper@redhat.com> * intl/plural.y (yylex): Minimal improvement in number scanner.
Diffstat (limited to 'intl/plural.y')
-rw-r--r--intl/plural.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/intl/plural.y b/intl/plural.y
index 32ad7515e5..f14dc29fd3 100644
--- a/intl/plural.y
+++ b/intl/plural.y
@@ -1,6 +1,6 @@
%{
/* Expression parsing for plural form selection.
- Copyright (C) 2000 Free Software Foundation, Inc.
+ Copyright (C) 2000, 2001 Free Software Foundation, Inc.
Written by Ulrich Drepper <drepper@cygnus.com>, 2000.
The GNU C Library is free software; you can redistribute it and/or
@@ -235,7 +235,7 @@ yylex (YYSTYPE *lval, const char **pexp)
case '0': case '1': case '2': case '3': case '4':
case '5': case '6': case '7': case '8': case '9':
{
- unsigned long int n = exp[-1] - '0';
+ unsigned long int n = result - '0';
while (exp[0] >= '0' && exp[0] <= '9')
{
n *= 10;