Skip to content
Snippets Groups Projects
Commit be06627c authored by Jonas Johan Solsvik's avatar Jonas Johan Solsvik
Browse files

fixed mac specific crash

parent 6e467633
No related branches found
No related tags found
No related merge requests found
......@@ -92,7 +92,7 @@ void Init::Config()
return;
} else {
C::GLVersionMajor = GLVersionMajor;
LOG_INFO("%s: %d", std::string(key), C::GLVersionMajor);
LOG_INFO("%s: %d", std::string(key).data(), C::GLVersionMajor);
}
// int C::GLVersionMinor
......
......@@ -25,7 +25,7 @@ auto Parser::nextLine() -> std::string_view
lineCount += 1;
// After every iteration startofLine is set to the current value of endofLine +1.
startofLine = endofLine + 1;
if (startofLine >= strview.size()) {
if (startofLine >= (int)strview.size()) {
LOG_ERROR("Trying to read a line which begins after the end of the file. Check your that your file has the correct amount of lines.");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment