Fix build bustage. Bug 311582

git-svn-id: svn://10.0.0.236/trunk@212250 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu
2006-09-24 17:14:17 +00:00
parent 0a664647e1
commit 689aba4dd0

View File

@@ -269,8 +269,9 @@ JSBool XPCVariant::InitializeData(XPCCallContext& ccx)
mData.u.wstr.mWStringValue =
NS_REINTERPRET_CAST(PRUnichar*, JS_GetStringChars(str));
mData.u.wstr.mWStringLength =
NS_REINTERPRET_CAST(PRUint32, JS_GetStringLength(str));
// Use C-style cast, because reinterpret cast from size_t to
// PRUint32 is not valid on some platforms.
mData.u.wstr.mWStringLength = (PRUint32)JS_GetStringLength(str);
mData.mType = nsIDataType::VTYPE_WSTRING_SIZE_IS;
return JS_TRUE;