mirror of
https://github.com/izzy2lost/Torch.git
synced 2026-07-06 00:18:35 -07:00
enum hex values
This commit is contained in:
+1
-1
@@ -158,7 +158,7 @@ void Companion::ParseEnums(std::string& header) {
|
||||
if(line.find("=") != std::string::npos) {
|
||||
auto value = line.substr(line.find("=") + 1);
|
||||
auto name = line.substr(0, line.find("="));
|
||||
enumIndex = std::stoi(value);
|
||||
enumIndex = static_cast<int32_t>(std::stoll(value, 0, 0));
|
||||
this->gEnums[enumName][enumIndex] = name;
|
||||
} else {
|
||||
enumIndex++;
|
||||
|
||||
Reference in New Issue
Block a user