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:
parent
96a3b57b97
commit
fa723151fb
1 changed files with 2 additions and 2 deletions
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue