Auto-update dlang core files [skip ci]

This commit is contained in:
Gitea Actions Bot committed 2026-10-15 13:11:12 +00:00
1 parent 2f9f97e2a7
commit 50cfd5994a
2 files changed
+18 -4

No files matched your search

+17 -3
View File
@@ -200,13 +200,25 @@ void DlangVM::Execute(ByteCodeArray bytecode)
auto b = stack.pop(); auto b = stack.pop();
auto a = stack.pop(); auto a = stack.pop();
if (a.type != StackValueType::Int || b.type != StackValueType::Int) if (a.type == StackValueType::Int && b.type == StackValueType::Int)
throw std::runtime_error("LESS_THAN Operation error, not all variables are integer!"); {
stack.push(StackValue(StackValueType::Bool, stack.push(StackValue(StackValueType::Bool,
std::get<double>(a.data) == std::get<double>(a.data) ==
std::get<double>(b.data) std::get<double>(b.data)
)); ));
continue;
}
if (a.type == StackValueType::String && b.type == StackValueType::String)
{
stack.push(StackValue(StackValueType::Bool,
std::get<std::string>(a.data) ==
std::get<std::string>(b.data)
));
continue;
}
throw std::runtime_error("COMPARE Operation error, in compatible variables!");
} break; } break;
case Opcodes::GTE: { case Opcodes::GTE: {
@@ -284,6 +296,8 @@ void DlangVM::Execute(ByteCodeArray bytecode)
if (a.type == StackValueType::Int && b.type == StackValueType::Int) { if (a.type == StackValueType::Int && b.type == StackValueType::Int) {
result.data = (std::get<double>(a.data) != std::get<double>(b.data)); result.data = (std::get<double>(a.data) != std::get<double>(b.data));
} else if(a.type == StackValueType::String && b.type == StackValueType::String) {
result.data = (std::get<std::string>(a.data) != std::get<std::string>(b.data));
} }
stack.push(result); stack.push(result);
+1 -1
View File
@@ -12,7 +12,7 @@
inline ModuleManager* pluginManager = nullptr; inline ModuleManager* pluginManager = nullptr;
#define DEBUG_MODE 0 #define DEBUG_MODE 0
#define VERSION "v1.0.38" #define VERSION "v1.0.39"
using ByteCodeArray = std::vector<double>; using ByteCodeArray = std::vector<double>;