From c45123208688706e4c54dc169159c550bd905e0a Mon Sep 17 00:00:00 2001 From: drepper Date: Fri, 5 Jan 2001 06:18:37 +0000 Subject: [PATCH] bison plural.c plural.y --- intl/plural.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/intl/plural.c b/intl/plural.c index e18b122ab0..c3eeaebb05 100644 --- a/intl/plural.c +++ b/intl/plural.c @@ -16,7 +16,7 @@ #line 1 "plural.y" /* 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 @@ -1163,7 +1163,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; -- 2.11.0