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:
@@ -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, ¶m_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)
|
||||
|
||||
Reference in New Issue
Block a user