mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-23 11:33:09 +00:00
lua5.3.3 bugfix 2/3
This commit is contained in:
@@ -1018,8 +1018,8 @@ static void codeunexpval (FuncState *fs, OpCode op, expdesc *e, int line) {
|
||||
*/
|
||||
static void codebinexpval (FuncState *fs, OpCode op,
|
||||
expdesc *e1, expdesc *e2, int line) {
|
||||
int rk1 = luaK_exp2RK(fs, e1); /* both operands are "RK" */
|
||||
int rk2 = luaK_exp2RK(fs, e2);
|
||||
int rk2 = luaK_exp2RK(fs, e2); /* both operands are "RK" */
|
||||
int rk1 = luaK_exp2RK(fs, e1);
|
||||
freeexps(fs, e1, e2);
|
||||
e1->u.info = luaK_codeABC(fs, op, 0, rk1, rk2); /* generate opcode */
|
||||
e1->k = VRELOCABLE; /* all those operations are relocatable */
|
||||
|
||||
@@ -260,7 +260,8 @@ static int getfield (lua_State *L, const char *key, int d, int delta) {
|
||||
static const char *checkoption (lua_State *L, const char *conv, char *buff) {
|
||||
const char *option;
|
||||
int oplen = 1;
|
||||
for (option = LUA_STRFTIMEOPTIONS; *option != '\0'; option += oplen) {
|
||||
int convlen = (int)strlen(conv);
|
||||
for (option = LUA_STRFTIMEOPTIONS; *option != '\0' && oplen <= convlen; option += oplen) {
|
||||
if (*option == '|') /* next block? */
|
||||
oplen++; /* next length */
|
||||
else if (memcmp(conv, option, oplen) == 0) { /* match? */
|
||||
|
||||
Reference in New Issue
Block a user