From c3edb55f8c28c9237cefdb5069a21ff3bea87e11 Mon Sep 17 00:00:00 2001 From: ache Date: Thu, 1 Apr 1999 10:22:48 +0000 Subject: fix sign extension bug Submitted by: Nikolai Saoukh --- usr.bin/mklocale/lex.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.bin/mklocale') diff --git a/usr.bin/mklocale/lex.l b/usr.bin/mklocale/lex.l index 0e2f1a9..bd5923a 100644 --- a/usr.bin/mklocale/lex.l +++ b/usr.bin/mklocale/lex.l @@ -53,7 +53,7 @@ XDIGIT [0-9a-fA-F] W [\t\n\r ] %% -\'.\' { yylval.rune = yytext[1]; +\'.\' { yylval.rune = (unsigned char)yytext[1]; return(RUNE); } '\\a' { yylval.rune = '\a'; -- cgit v1.1