enum -> enum class in lexer

This makes enum elements scoped which is actually quite useful as I
prefer the namespacing that enum's give in C++.
This commit is contained in:
2024-04-14 17:17:51 +06:30
parent 86aca9a596
commit 86e9d51ab0
3 changed files with 7 additions and 6 deletions

View File

@@ -100,7 +100,7 @@ int main(int argc, const char *argv[])
}
std::cerr << file_name << ":" << line << ":" << col << ":"
<< lerr_as_cstr(lerr) << std::endl;
ret = 255 - lerr;
ret = 255 - static_cast<int>(lerr);
goto end;
}
else