diff options
author | George Hazan <ghazan@miranda.im> | 2017-12-11 12:04:28 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-12-11 12:04:28 +0300 |
commit | 322fece4cdb97f834c3c13b7bb3157ba6e4fa449 (patch) | |
tree | ab02c0681f9c9bb1adc1038b251f502dcdb49638 /protocols/Discord/src/gateway.cpp | |
parent | 4abcb6d6a611b10f32d803270b7f2480fbb6865e (diff) |
parameters unification between JSON & HTTP
Diffstat (limited to 'protocols/Discord/src/gateway.cpp')
-rw-r--r-- | protocols/Discord/src/gateway.cpp | 2 |
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) { |