move the cast earlier; the callback also needs it
This commit is contained in:
8
lex.c
8
lex.c
@@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
#include "sh.h"
|
#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
|
* states while lexing word
|
||||||
@@ -127,11 +127,11 @@ static int ignore_backslash_newline;
|
|||||||
static int
|
static int
|
||||||
getsc_i(void)
|
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)
|
#if defined(MKSH_SMALL) && !defined(MKSH_SMALL_BUT_FAST)
|
||||||
#define getsc() ((unsigned int)(unsigned char)(getsc_i()))
|
#define getsc() getsc_i()
|
||||||
#else
|
#else
|
||||||
static int getsc_r(int);
|
static int getsc_r(int);
|
||||||
|
|
||||||
@@ -141,7 +141,7 @@ getsc_r(int c)
|
|||||||
o_getsc_r(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
|
#endif
|
||||||
|
|
||||||
#define STATE_BSIZE 8
|
#define STATE_BSIZE 8
|
||||||
|
Reference in New Issue
Block a user