From d7b77a76dfd238f2a9b379768120ccb23f6a550a Mon Sep 17 00:00:00 2001 From: tg Date: Sun, 14 Jan 2018 00:57:55 +0000 Subject: [PATCH] =?UTF-8?q?I=20think=20I=E2=80=99m=20onto=20something=20he?= =?UTF-8?q?re=E2=80=A6=20getsc=5F{uu,bn}=20never=20return=20-1=20AFAICT?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lex.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lex.c b/lex.c index 8b46b45..64284e5 100644 --- a/lex.c +++ b/lex.c @@ -23,7 +23,7 @@ #include "sh.h" -__RCSID("$MirOS: src/bin/mksh/lex.c,v 1.244 2018/01/14 00:51:35 tg Exp $"); +__RCSID("$MirOS: src/bin/mksh/lex.c,v 1.245 2018/01/14 00:57:55 tg Exp $"); /* * states while lexing word @@ -131,7 +131,7 @@ getsc_i(void) } #if defined(MKSH_SMALL) && !defined(MKSH_SMALL_BUT_FAST) -#define getsc() ord(getsc_i()) +#define getsc() ((unsigned int)(unsigned char)(getsc_i())) #else static int getsc_r(int); @@ -141,7 +141,7 @@ getsc_r(int c) o_getsc_r(c); } -#define getsc() ord(getsc_r(o_getsc())) +#define getsc() ((unsigned int)(unsigned char)(getsc_r(o_getsc()))) #endif #define STATE_BSIZE 8