diff --git a/netwerk/protocol/websocket/nsWebSocketHandler.cpp b/netwerk/protocol/websocket/nsWebSocketHandler.cpp index 6f64c05b290..b8bf580c96a 100644 --- a/netwerk/protocol/websocket/nsWebSocketHandler.cpp +++ b/netwerk/protocol/websocket/nsWebSocketHandler.cpp @@ -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(data) & 3)) { *data ^= mask >> 24; mask = PR_ROTATE_LEFT32(mask, 8); data++;