From 95d633e71eaf51fdfcb85f1241d46cd05f396b2b Mon Sep 17 00:00:00 2001 From: Benjamin Sergeant Date: Mon, 26 Aug 2019 14:29:16 -0700 Subject: [PATCH] tentative gcc build fix --- ws/ixcobra/IXCobraConnection.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ws/ixcobra/IXCobraConnection.cpp b/ws/ixcobra/IXCobraConnection.cpp index 24d0bd1d..681d55e3 100644 --- a/ws/ixcobra/IXCobraConnection.cpp +++ b/ws/ixcobra/IXCobraConnection.cpp @@ -245,7 +245,7 @@ namespace ix Json::Value pdu; pdu["action"] = "auth/handshake"; pdu["body"] = body; - pdu["id"] = _id++; + pdu["id"] = Json::UInt64(_id++); std::string serializedJson = serializeJson(pdu); CobraConnection::invokeTrafficTrackerCallback(serializedJson.size(), false); @@ -308,7 +308,7 @@ namespace ix Json::Value pdu; pdu["action"] = "auth/authenticate"; pdu["body"] = body; - pdu["id"] = _id++; + pdu["id"] = Json::UInt64(_id++); std::string serializedJson = serializeJson(pdu); CobraConnection::invokeTrafficTrackerCallback(serializedJson.size(), false); @@ -405,7 +405,7 @@ namespace ix _body["channels"] = channels; _body["message"] = msg; _pdu["body"] = _body; - _pdu["id"] = _id++; + _pdu["id"] = Json::UInt64(_id++); std::string serializedJson = serializeJson(_pdu); @@ -448,7 +448,7 @@ namespace ix Json::Value pdu; pdu["action"] = "rtm/subscribe"; pdu["body"] = body; - pdu["id"] = _id++; + pdu["id"] = Json::UInt64(_id++); _webSocket->send(pdu.toStyledString()); @@ -474,7 +474,7 @@ namespace ix Json::Value pdu; pdu["action"] = "rtm/unsubscribe"; pdu["body"] = body; - pdu["id"] = _id++; + pdu["id"] = Json::UInt64(_id++); _webSocket->send(pdu.toStyledString()); }