Skip to content

Commit

Permalink
Fix matdbg for 32 bits architectures
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelflinger committed Aug 10, 2023
1 parent 083bff6 commit 8e61705
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/matdbg/src/DebugServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ class RestRequestHandler : public CivetHandler {
if (mg_get_var(request->query_string, qlength, "matid", matid, sizeof(matid)) < 0) {
return error(__LINE__);
}
const uint32_t id = strtol(matid, nullptr, 16);
const uint32_t id = strtoul(matid, nullptr, 16);
const DebugServer::MaterialRecord* result = mServer->getRecord(id);
if (result == nullptr) {
return error(__LINE__);
Expand Down Expand Up @@ -257,7 +257,7 @@ class RestRequestHandler : public CivetHandler {
return error(__LINE__);
}

std::string_view language(type, strlen(type));
std::string_view const language(type, strlen(type));

char glindex[4] = {};
char vkindex[4] = {};
Expand Down

0 comments on commit 8e61705

Please sign in to comment.