summaryrefslogtreecommitdiffstats
path: root/swig
diff options
context:
space:
mode:
authorEmmanuel Raviart <eraviart@entrouvert.com>2005-01-13 13:54:40 +0000
committerEmmanuel Raviart <eraviart@entrouvert.com>2005-01-13 13:54:40 +0000
commitcd8a5088f2a9e22aade9d93c0085d57507c300a3 (patch)
tree22549a34425aad1f1a99dd1665462a65632b8988 /swig
parent5ac97cc649f52328dd418dfa8cd61525d44d2dda (diff)
downloadlasso-cd8a5088f2a9e22aade9d93c0085d57507c300a3.tar.gz
lasso-cd8a5088f2a9e22aade9d93c0085d57507c300a3.tar.xz
lasso-cd8a5088f2a9e22aade9d93c0085d57507c300a3.zip
Swig PHP: Corrected LassoNode conversion for input arguments.
Diffstat (limited to 'swig')
-rw-r--r--swig/Lasso.i4
1 files changed, 2 insertions, 2 deletions
diff --git a/swig/Lasso.i b/swig/Lasso.i
index dfcd9eee..7d264c6b 100644
--- a/swig/Lasso.i
+++ b/swig/Lasso.i
@@ -404,7 +404,7 @@ static void set_node_info(node_info *info, char *name, char *superName, swig_typ
for (super = info; super; super = super->super)
if (super->swig == $1_descriptor)
break;
- if (super && SWIG_ConvertPtr($input, (void **) &$1, info->swig, 0) < 0)
+ if (super && SWIG_ConvertPtr($input, (void **) &$1, info->swig, 0) >= 0)
break;
}
if (! info->swig)
@@ -415,7 +415,7 @@ static void set_node_info(node_info *info, char *name, char *superName, swig_typ
for (super = info; super; super = super->super)
if (super->swig == $1_descriptor)
break;
- if (super && SWIG_ConvertPtr($input, (void **) &$1, info->swig) < 0)
+ if (super && SWIG_ConvertPtr(*$input, (void **) &$1, info->swig) >= 0)
break;
}
if (! info->swig)