зеркало из https://github.com/mozilla/pjs.git
Bug 661517 - nsWebSocketHandler.cpp fails to compile on mingw-w64 r=mcmanus DONTBUILD
This commit is contained in:
Родитель
5345c2ac84
Коммит
a7729206bb
|
@ -951,7 +951,7 @@ nsWebSocketHandler::ApplyMask(PRUint32 mask, PRUint8 *data, PRUint64 len)
|
|||
// but the buffer might not be alligned. So we first deal with
|
||||
// 0 to 3 bytes of preamble individually
|
||||
|
||||
while (len && ((unsigned long) data & 3)) {
|
||||
while (len && (reinterpret_cast<PRUptrdiff>(data) & 3)) {
|
||||
*data ^= mask >> 24;
|
||||
mask = PR_ROTATE_LEFT32(mask, 8);
|
||||
data++;
|
||||
|
|
Загрузка…
Ссылка в новой задаче