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