$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 #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: