Merge branch 'main' into dev

This commit is contained in:
MihailRis
2025-10-14 21:53:40 +03:00
7 changed files with 47 additions and 37 deletions
+1 -1
View File
@@ -137,7 +137,7 @@ static int l_unpack(lua::State* L) {
for (size_t i = 0; format[i]; i++) {
switch (format[i]) {
case 'b':
lua::pushinteger(L, reader.get());
lua::pushinteger(L, static_cast<int8_t>(reader.get()));
break;
case 'B':
lua::pushinteger(L, reader.get() & 0xFF);
@@ -44,7 +44,7 @@ static int l_create_fragment(lua::State* L) {
static int l_load_fragment(lua::State* L) {
dv::value map;
if (!lua::isstring(L, 1)) {
if (lua::isstring(L, 1)) {
io::path path = lua::require_string(L, 1);
if (!io::exists(path)) {
throw std::runtime_error("file "+path.string()+" does not exist");