remove pushliteral version in luaopen_luautf8

This commit is contained in:
niki
2020-08-15 01:28:49 +02:00
parent 99e1c0034d
commit c3e6659fcb
-5
View File
@@ -309,12 +309,7 @@ int luaopen_luautf8 (lua_State *L) {
lua_setfield(L, -2, l->name);
}
}
#if LUA_VERSION_NUM >= 504
lua_pushlstring(L, UTF8PATT, sizeof(UTF8PATT) / sizeof(char) - 1);
lua_setfield(L, -2, "charpattern");
#else
lua_pushliteral(L, UTF8PATT);
lua_setfield(L, -2, "charpattern");
#endif
return 1;
}