more solaris fixes

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6188 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2004-09-01 02:12:02 +00:00
commit fa723151fb

View file

@ -215,7 +215,7 @@ namespace swigpy {
static bool asval(PyObject *obj, Type **val) {
if (val) {
Type *p = 0;
int res = asptr(obj, &p);
int res = traits_asptr<Type>::asptr(obj, &p);
if (res) {
typedef typename noconst_traits<Type*>::noconst_type noconst_type;
*(const_cast<noconst_type*>(val)) = p;
@ -224,7 +224,7 @@ namespace swigpy {
return false;
}
} else {
return asptr(obj, (Type **)(0));
return traits_asptr<Type>::asptr(obj, (Type **)(0));
}
}
};