summaryrefslogtreecommitdiff
path: root/protocols/Discord/src/gateway.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-12-11 12:04:28 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-12-11 12:04:28 +0300
commit322fece4cdb97f834c3c13b7bb3157ba6e4fa449 (patch)
treeab02c0681f9c9bb1adc1038b251f502dcdb49638 /protocols/Discord/src/gateway.cpp
parent4abcb6d6a611b10f32d803270b7f2480fbb6865e (diff)
parameters unification between JSON & HTTP
Diffstat (limited to 'protocols/Discord/src/gateway.cpp')
-rw-r--r--protocols/Discord/src/gateway.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/Discord/src/gateway.cpp b/protocols/Discord/src/gateway.cpp
index 0f59b9382e..228e6bad25 100644
--- a/protocols/Discord/src/gateway.cpp
+++ b/protocols/Discord/src/gateway.cpp
@@ -220,7 +220,7 @@ void CDiscordProto::GatewayThreadWorker()
debugLogA("Got packet: buffer = %d, opcode = %d, headerSize = %d, final = %d, masked = %d", bufSize, hdr.opCode, hdr.headerSize, hdr.bIsFinal, hdr.bIsMasked);
// we have some additional data, not only opcode
- if (bufSize > hdr.headerSize) {
+ if ((size_t)bufSize > hdr.headerSize) {
size_t currPacketSize = bufSize - hdr.headerSize;
netbuf.append(buf, bufSize);
while (currPacketSize < hdr.payloadSize) {