change lua_gettop to lua::gettop

This commit is contained in:
Xertis 2025-10-01 19:14:43 +03:00 committed by GitHub
parent ab60e7b835
commit 8eeb9f5fde
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -189,7 +189,7 @@ static int l_list(lua::State* L) {
}
static int l_gzip_compress(lua::State* L) {
char argc = lua_gettop(L);
char argc = lua::gettop(L);
auto str = lua::bytearray_as_string(L, 1);
auto compressedBytes = gzip::compress(
reinterpret_cast<const ubyte*>(str.data()),
@ -212,7 +212,7 @@ static int l_gzip_compress(lua::State* L) {
}
static int l_gzip_decompress(lua::State* L) {
char argc = lua_gettop(L);
char argc = lua::gettop(L);
auto str = lua::bytearray_as_string(L, 1);
auto decompressedBytes = gzip::decompress(
reinterpret_cast<const ubyte*>(str.data()),
@ -454,3 +454,4 @@ const luaL_Reg filelib[] = {
{"__close_all_descriptors", lua::wrap<l_close_all_descriptors>},
{NULL, NULL}
};