Added possible support for MacOS. Completely untested.

Relevant: #32
This commit is contained in:
WerWolv
2020-12-06 13:48:56 +01:00
parent 68f93c5e3d
commit 4720cf9fbe
9 changed files with 26 additions and 26 deletions

View File

@@ -231,7 +231,7 @@ namespace hex::lang {
char *end = nullptr;
std::strtoull(&code[offset], &end, 0);
auto integer = parseInt(std::string_view(&code[offset], end));
auto integer = parseInt(std::string_view(&code[offset], end - &code[offset]));
if (!integer.has_value()) {
this->m_error = { lineNumber, "Invalid integer literal" };