more solaris fixes

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

View file

@ -196,7 +196,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 && p) {
typedef typename noconst_traits<Type>::noconst_type noconst_type;
*(const_cast<noconst_type*>(val)) = *p;
@ -206,7 +206,7 @@ namespace swigpy {
return false;
}
} else {
return asptr(obj, (Type **)(0));
return traits_asptr<Type>::asptr(obj, (Type **)(0));
}
}
};