From e9bd9ab3a6cd30d24ad83fe6ed19a1dc1ab738ce Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Wed, 9 Aug 2023 16:53:48 -0700 Subject: [PATCH] Fix matdbg for 32 bits architectures --- libs/matdbg/src/DebugServer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/matdbg/src/DebugServer.cpp b/libs/matdbg/src/DebugServer.cpp index 95c5a637d9..1ccd12bf20 100644 --- a/libs/matdbg/src/DebugServer.cpp +++ b/libs/matdbg/src/DebugServer.cpp @@ -227,7 +227,7 @@ public: 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__); @@ -257,7 +257,7 @@ public: return error(__LINE__); } - std::string_view language(type, strlen(type)); + std::string_view const language(type, strlen(type)); char glindex[4] = {}; char vkindex[4] = {};