Compilation fix
This commit is contained in:
+1
-1
@@ -142,7 +142,7 @@ static const luaL_Reg co_funcs[] = {
|
||||
{"status", luaB_costatus},
|
||||
{"wrap", luaB_cowrap},
|
||||
{"yield", luaB_yield},
|
||||
{nullptr, nullptr}
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
||||
|
||||
|
||||
Vendored
+2
-2
@@ -160,7 +160,7 @@ void luaX_setinput (lua_State *L, LexState *ls, ZIO *z, TString *source,
|
||||
ls->current = firstchar;
|
||||
ls->lookahead.token = TK_EOS; /* no look-ahead token */
|
||||
ls->z = z;
|
||||
ls->fs = nullptr;
|
||||
ls->fs = NULL;
|
||||
ls->linenumber = 1;
|
||||
ls->lastline = 1;
|
||||
ls->source = source;
|
||||
@@ -416,7 +416,7 @@ static int llex (LexState *ls, SemInfo *seminfo) {
|
||||
int sep = skip_sep(ls);
|
||||
luaZ_resetbuffer(ls->buff); /* `skip_sep' may dirty the buffer */
|
||||
if (sep >= 0) {
|
||||
read_long_string(ls, nullptr, sep); /* skip long comment */
|
||||
read_long_string(ls, NULL, sep); /* skip long comment */
|
||||
luaZ_resetbuffer(ls->buff); /* previous call may dirty the buff. */
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user