mirror of https://github.com/rusefi/lua.git
string constants (Kstr) must fit into 'B' register
This commit is contained in:
parent
7f9a32ad85
commit
f3b3d9b5c2
4
lcode.c
4
lcode.c
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
** $Id: lcode.c,v 2.126 2017/09/28 16:53:29 roberto Exp roberto $
|
** $Id: lcode.c,v 2.127 2017/10/01 19:13:43 roberto Exp roberto $
|
||||||
** Code generator for Lua
|
** Code generator for Lua
|
||||||
** See Copyright Notice in lua.h
|
** See Copyright Notice in lua.h
|
||||||
*/
|
*/
|
||||||
|
@ -1057,7 +1057,7 @@ static void codenot (FuncState *fs, expdesc *e) {
|
||||||
** Check whether expression 'e' is a small literal string
|
** Check whether expression 'e' is a small literal string
|
||||||
*/
|
*/
|
||||||
static int isKstr (FuncState *fs, expdesc *e) {
|
static int isKstr (FuncState *fs, expdesc *e) {
|
||||||
return (e->k == VK && !hasjumps(e) && e->u.info <= MAXARG_C &&
|
return (e->k == VK && !hasjumps(e) && e->u.info <= MAXARG_B &&
|
||||||
ttisshrstring(&fs->f->k[e->u.info]));
|
ttisshrstring(&fs->f->k[e->u.info]));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue