mirror of https://github.com/rusefi/lua.git
first element in a list constructor is not adjusted to one value.
This commit is contained in:
parent
b803c0600e
commit
843f84f4ce
5
bugs
5
bugs
|
@ -175,3 +175,8 @@ in the following platforms:
|
||||||
Tue May 2 15:27:58 EST 2000
|
Tue May 2 15:27:58 EST 2000
|
||||||
>> `strfind' gets wrong subject length when there is an offset
|
>> `strfind' gets wrong subject length when there is an offset
|
||||||
(by Jon Kleiser; since 4.0a)
|
(by Jon Kleiser; since 4.0a)
|
||||||
|
|
||||||
|
** lparser.c
|
||||||
|
Fri May 12 15:11:12 EST 2000
|
||||||
|
>> first element in a list constructor is not adjusted to one value
|
||||||
|
(by Tomas; since 4.0a)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
** $Id: lparser.c,v 1.84 2000/05/08 18:46:34 roberto Exp roberto $
|
** $Id: lparser.c,v 1.85 2000/05/10 16:33:20 roberto Exp roberto $
|
||||||
** LL(1) Parser and code generator for Lua
|
** LL(1) Parser and code generator for Lua
|
||||||
** See Copyright Notice in lua.h
|
** See Copyright Notice in lua.h
|
||||||
*/
|
*/
|
||||||
|
@ -653,7 +653,7 @@ static void constructor_part (LexState *ls, Constdesc *cd) {
|
||||||
cd->k = 1; /* record */
|
cd->k = 1; /* record */
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
luaK_tostack(ls, &v, 0);
|
luaK_tostack(ls, &v, 1);
|
||||||
cd->n = listfields(ls);
|
cd->n = listfields(ls);
|
||||||
cd->k = 0; /* list */
|
cd->k = 0; /* list */
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue