pkgsrc/www/nvu/patches/patch-netwerk_protocol_http_src_nshttpconnectionmgr_cpp
dholland b29c17f829 Fix previous, which only worked on current because of PR 45258.
Addresses new problem appearing in PR 40206.
2011-08-16 01:30:59 +00:00

25 lines
886 B
Text

$NetBSD: patch-netwerk_protocol_http_src_nshttpconnectionmgr_cpp,v 1.2 2011/08/16 01:31:00 dholland Exp $
Build on amd64.
--- netwerk/protocol/http/src/nsHttpConnectionMgr.cpp.orig 2004-09-01 23:31:03.000000000 +0000
+++ netwerk/protocol/http/src/nsHttpConnectionMgr.cpp
@@ -36,6 +36,7 @@
*
* ***** END LICENSE BLOCK ***** */
+#include <stdint.h>
#include "nsHttpConnectionMgr.h"
#include "nsHttpConnection.h"
#include "nsHttpPipeline.h"
@@ -834,8 +835,8 @@ nsHttpConnectionMgr::OnMsgReclaimConnect
void
nsHttpConnectionMgr::OnMsgUpdateParam(nsresult status, void *param)
{
- PRUint16 name = (PRUint32(param) & 0xFFFF0000) >> 16;
- PRUint16 value = PRUint32(param) & 0x0000FFFF;
+ PRUint16 name = (PRUint32((uintptr_t)param) & 0xFFFF0000) >> 16;
+ PRUint16 value = PRUint32((uintptr_t)param) & 0x0000FFFF;
switch (name) {
case MAX_CONNECTIONS: