Skip to content
Snippets Groups Projects
Commit 0da84a73 authored by Andreas Traczyk's avatar Andreas Traczyk
Browse files

connectionmanager: improve portability of string to integer conversion

On Windows using MSC, unsigned long is 32 bits even on 64-bit systems, while unsigned long long is 64 bits.

This commit replaces the call to std::stoul with std::stoull which should be portable.

This will address the following Jami-client issue:
jami-client-qt#1419

Change-Id: I9f7998573f493f479b9f97bf5d56ef65b8b58f57
parent c385551b
No related branches found
No related tags found
No related merge requests found
......@@ -54,7 +54,7 @@ std::pair<dhtnet::DeviceId, dht::Value::Id> parseCallbackId(std::string_view ci)
std::string_view vidString = ci.substr(sep + 1);
dhtnet::DeviceId deviceId(deviceIdString);
dht::Value::Id vid = std::stoul(std::string(vidString), nullptr, 10);
dht::Value::Id vid = std::stoull(std::string(vidString), nullptr, 10);
return {deviceId, vid};
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment