diff options
author | Marcelo Matus <mmatus@acms.arizona.edu> | 2004-12-19 22:36:45 +0000 |
---|---|---|
committer | Marcelo Matus <mmatus@acms.arizona.edu> | 2004-12-19 22:36:45 +0000 |
commit | 839e80a70bdf53aa716a475e1366dfe4c36ece28 (patch) | |
tree | 34d57dde5dceb8fc42a90e34d2e2b156511850c4 /Lib/python | |
parent | b316e6445affca48cb98b799ae17472ca3863a62 (diff) | |
download | swig-839e80a70bdf53aa716a475e1366dfe4c36ece28.tar.gz |
fix *INPUT typemaps for ptr types, now a null value is ok
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6897 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Lib/python')
-rw-r--r-- | Lib/python/pyinout.swg | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Lib/python/pyinout.swg b/Lib/python/pyinout.swg index e0623487d..93d13c81a 100644 --- a/Lib/python/pyinout.swg +++ b/Lib/python/pyinout.swg @@ -80,11 +80,7 @@ or you can use the %apply directive : res = asptr_meth($input, &$1); if (!res) { SWIG_type_error("$basetype", $input); - } else { - if (!$1) { - SWIG_null_ref("$basetype"); - } - } + } if (SWIG_arg_fail($argnum)) SWIG_fail; } |