From 2d3ae47264d1892c471846aecf0e33b0e3e320b7 Mon Sep 17 00:00:00 2001 From: "cbiesinger%web.de" Date: Tue, 13 Apr 2004 19:54:44 +0000 Subject: [PATCH] fixing win32 bustage --- js/src/xpconnect/src/xpcthrower.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/src/xpconnect/src/xpcthrower.cpp b/js/src/xpconnect/src/xpcthrower.cpp index 86ed51c7cf2..a00da11b889 100644 --- a/js/src/xpconnect/src/xpcthrower.cpp +++ b/js/src/xpconnect/src/xpcthrower.cpp @@ -291,7 +291,7 @@ XPCThrower::ThrowCOMError(JSContext* cx, unsigned long COMErrorCode, msg += NS_STATIC_CAST(const char *, _bstr_t(exception->bstrSource, false)); msg += " : "; - msg.AppendInt(COMErrorCode); + msg.AppendInt(NS_STATIC_CAST(PRUint32, COMErrorCode)); msg += " - "; msg += NS_STATIC_CAST(const char *, _bstr_t(exception->bstrDescription, false)); @@ -310,7 +310,7 @@ XPCThrower::ThrowCOMError(JSContext* cx, unsigned long COMErrorCode, msg += NS_STATIC_CAST(const char *,src); msg += " : "; } - msg.AppendInt(COMErrorCode, 16); + msg.AppendInt(NS_STATIC_CAST(PRUint32, COMErrorCode), 16); BSTR bstrDesc = NULL; if(SUCCEEDED(pError->GetDescription(&bstrDesc)) && bstrDesc) { @@ -323,7 +323,7 @@ XPCThrower::ThrowCOMError(JSContext* cx, unsigned long COMErrorCode, { // No error object, so just report the result msg += "COM Error Result = "; - msg.AppendInt(COMErrorCode, 16); + msg.AppendInt(NS_STATIC_CAST(PRUint32, COMErrorCode), 16); } }