Fix MSVC warnings in qspdyprotocolhandler
Fix warnings about 'truncation of constant value': qspdyprotocolhandler.cpp(583) : warning C4309: '=' : truncation of constant value qspdyprotocolhandler.cpp(656) : warning C4309: '=' : truncation of constant value qspdyprotocolhandler.cpp(659) : warning C4309: '=' : truncation of constant value Change-Id: I3c32b9f47c06da9b50f5c94871a2ee455b3a5cb6 Reviewed-by: Peter Hartmann <phartmann@blackberry.com>
This commit is contained in:
parent
2406a8b45f
commit
c8de2a8b5f
@ -598,7 +598,7 @@ void QSpdyProtocolHandler::sendControlFrame(FrameType type,
|
||||
{
|
||||
// frame type and stream ID
|
||||
char header[8];
|
||||
header[0] = 0x80; // leftmost bit == 1 -> is a control frame
|
||||
header[0] = 0x80u; // leftmost bit == 1 -> is a control frame
|
||||
header[1] = 0x03; // 3 bit == version 3
|
||||
header[2] = 0;
|
||||
switch (type) {
|
||||
@ -671,10 +671,10 @@ void QSpdyProtocolHandler::sendSYN_STREAM(HttpMessagePair messagePair,
|
||||
prioAndSlot[0] = 0x00; // == prio 0 (highest)
|
||||
break;
|
||||
case QHttpNetworkRequest::NormalPriority:
|
||||
prioAndSlot[0] = 0x80; // == prio 4
|
||||
prioAndSlot[0] = 0x80u; // == prio 4
|
||||
break;
|
||||
case QHttpNetworkRequest::LowPriority:
|
||||
prioAndSlot[0] = 0xe0; // == prio 7 (lowest)
|
||||
prioAndSlot[0] = 0xe0u; // == prio 7 (lowest)
|
||||
break;
|
||||
}
|
||||
prioAndSlot[1] = 0x00; // slot in client certificates (not supported currently)
|
||||
|
Loading…
Reference in New Issue
Block a user