Merge branch 'main' into dev
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user