This commit is contained in:
MihailRis
2025-09-28 22:22:59 +03:00
parent 2d1c69ee7e
commit 6eda819011
3 changed files with 4 additions and 4 deletions
+1 -2
View File
@@ -33,8 +33,7 @@ static int l_tostring(lua::State* L) {
lua::pop(L);
return lua::pushlstring(L, buffer.data(), size);
} else {
lua::bytearray_as_string(L, 1);
return 1;
return lua::pushlstring(L, lua::bytearray_as_string(L, 1));
}
}