upd: add full support for str - str

This commit is contained in:
2023-11-10 12:23:29 +08:00
parent c21d0b452b
commit 0074023bd9

View File

@ -175,6 +175,7 @@ std::any Add(std::any a, std::any b) {
throw FatalError("Add: Type Error", 38);
}
std::any Sub(std::any a, std::any b) {
if (std::any_cast<std::string>(&a) != nullptr) a = ZYM::int2048(0);
if (std::any_cast<std::string>(&b) != nullptr) b = ZYM::int2048(0);
if (std::any_cast<NoneType>(&a)) a = (bool)false;
if (std::any_cast<NoneType>(&b)) b = (bool)false;