Fix up bogus casts of nsXPTType pointers - fixes segment faults on some

platforms.

Not part of the build.


git-svn-id: svn://10.0.0.236/trunk@102783 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
markh%activestate.com
2001-09-12 01:45:57 +00:00
parent 6c0218a0d0
commit 25a26c0129
2 changed files with 14 additions and 2 deletions

View File

@@ -309,12 +309,12 @@ static PyObject *PyGetTypeForParam(PyObject *self, PyObject *args)
const nsXPTMethodInfo *pmi;
if (!__GetMethodInfoHelper(pii, mi, pi, &pmi))
return NULL;
nsXPTType datumType;
nsXPTType datumType;
const nsXPTParamInfo& param_info = pmi->GetParam((PRUint8)pi);
nsresult n = pii->GetTypeForParam(mi, &param_info, dim, &datumType);
if (NS_FAILED(n))
return PyXPCOM_BuildPyException(n);
return PyObject_FromXPTTypeDescriptor((const XPTTypeDescriptor *)&datumType);
return PyObject_FromXPTType(&datumType);
}
static PyObject *PyGetSizeIsArgNumberForParam(PyObject *self, PyObject *args)