Bug 505727 - nsDOMClassInfo.cpp fails to compile on MinGW. r=bz

This commit is contained in:
Jacek Caban 2009-08-09 21:42:55 +02:00
parent e38b0056c7
commit 1806c7e44f

View File

@ -4222,7 +4222,7 @@ nsDOMClassInfo::PostCreatePrototype(JSContext * cx, JSObject * proto)
// Don't overwrite a property set by content.
JSBool found;
if (!::JS_AlreadyHasOwnUCProperty(cx, global, mData->mNameUTF16,
if (!::JS_AlreadyHasOwnUCProperty(cx, global, reinterpret_cast<const jschar*>(mData->mNameUTF16),
nsCRT::strlen(mData->mNameUTF16), &found)) {
return NS_ERROR_FAILURE;
}