From eda6c725e7a3d6f5d78d5ae171d395cfd39b44bc Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 5 Jan 2001 06:18:46 +0000 Subject: Update. 2001-01-04 Ulrich Drepper * intl/plural.y (yylex): Minimal improvement in number scanner. --- intl/plural.y | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'intl/plural.y') 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 , 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; -- cgit v1.2.3