Change dap::integer backing type to int64_t

`int` may be < 64 bit, and some dap protocols use a 64 bit integer. Chnage to `int64_t` to be consistent.

Fixes: #45
This commit is contained in:
Ben Clayton
2020-06-29 20:41:32 +01:00
parent 7b02b9f73a
commit 1e5ec3e405
3 changed files with 19 additions and 16 deletions

View File

@@ -167,7 +167,8 @@ class Impl : public dap::Session {
}
}
std::pair<const dap::TypeInfo*, GenericResponseHandler> response(int seq) {
std::pair<const dap::TypeInfo*, GenericResponseHandler> response(
int64_t seq) {
std::unique_lock<std::mutex> lock(responseMutex);
auto responseIt = responseMap.find(seq);
if (responseIt == responseMap.end()) {
@@ -252,7 +253,7 @@ class Impl : public dap::Session {
requestMap;
std::mutex responseMutex;
std::unordered_map<int,
std::unordered_map<int64_t,
std::pair<const dap::TypeInfo*, GenericResponseHandler>>
responseMap;