move the cast earlier; the callback also needs it

This commit is contained in:
tg 2018-01-14 01:25:28 +00:00
parent d7b77a76df
commit 141dfaf819
1 changed files with 4 additions and 4 deletions

8
lex.c
View File

@ -23,7 +23,7 @@
#include "sh.h"
__RCSID("$MirOS: src/bin/mksh/lex.c,v 1.245 2018/01/14 00:57:55 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/lex.c,v 1.246 2018/01/14 01:25:28 tg Exp $");
/*
* states while lexing word
@ -127,11 +127,11 @@ static int ignore_backslash_newline;
static int
getsc_i(void)
{
o_getsc_r(o_getsc());
o_getsc_r((unsigned int)(unsigned char)o_getsc());
}
#if defined(MKSH_SMALL) && !defined(MKSH_SMALL_BUT_FAST)
#define getsc() ((unsigned int)(unsigned char)(getsc_i()))
#define getsc() getsc_i()
#else
static int getsc_r(int);
@ -141,7 +141,7 @@ getsc_r(int c)
o_getsc_r(c);
}
#define getsc() ((unsigned int)(unsigned char)(getsc_r(o_getsc())))
#define getsc() getsc_r((unsigned int)(unsigned char)o_getsc())
#endif
#define STATE_BSIZE 8