From 571880b55181c29b1380b209ec46e0cea0a16f55 Mon Sep 17 00:00:00 2001 From: "rickg%netscape.com" Date: Mon, 30 Aug 1999 08:15:47 +0000 Subject: [PATCH] try to make mac build happy --- xpfe/components/history/src/nsGlobalHistory.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xpfe/components/history/src/nsGlobalHistory.cpp b/xpfe/components/history/src/nsGlobalHistory.cpp index c7c11fb293f0..7e77b942bc8a 100644 --- a/xpfe/components/history/src/nsGlobalHistory.cpp +++ b/xpfe/components/history/src/nsGlobalHistory.cpp @@ -752,7 +752,7 @@ nsGlobalHistory::SetPageTitle(const char *aURL, const PRUnichar *aTitle) nsCOMPtr oldname; if (cell) { cell->AliasYarn(mEnv, &yarn); - nsAutoString str((const PRUnichar*) yarn.mYarn_Buf, (yarn.mYarn_Fill / sizeof(PRUnichar))); + nsAutoString str((const PRUnichar*) yarn.mYarn_Buf, PRInt32(yarn.mYarn_Fill / sizeof(PRUnichar))); rv = gRDFService->GetLiteral(str.GetUnicode(), getter_AddRefs(oldname)); if (NS_FAILED(rv)) return rv; @@ -974,7 +974,7 @@ nsGlobalHistory::GetTarget(nsIRDFResource* aSource, cell->AliasYarn(mEnv, &yarn); - nsAutoString str((const PRUnichar*) yarn.mYarn_Buf, (yarn.mYarn_Fill / sizeof(PRUnichar))); + nsAutoString str((const PRUnichar*) yarn.mYarn_Buf, PRInt32(yarn.mYarn_Fill / sizeof(PRUnichar))); nsCOMPtr name; rv = gRDFService->GetLiteral(str.GetUnicode(), getter_AddRefs(name));