diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2018-12-30 11:25:41 +0000 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2018-12-30 11:25:41 +0000 |
commit | e354ba8cdc534c1c06dc9c87d48c656bbd15c84c (patch) | |
tree | 14d736834aa6917db65ccfe2b2493f92d8bb1f99 /Lib/octave | |
parent | cd7772a274a889cf96523fb1ebcc99d1390a177e (diff) | |
download | swig-e354ba8cdc534c1c06dc9c87d48c656bbd15c84c.tar.gz |
Fix overloading for non-pointers and NULL - Octave
Diffstat (limited to 'Lib/octave')
-rw-r--r-- | Lib/octave/octrun.swg | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/octave/octrun.swg b/Lib/octave/octrun.swg index feed973cc..301233103 100644 --- a/Lib/octave/octrun.swg +++ b/Lib/octave/octrun.swg @@ -1477,7 +1477,7 @@ SWIGRUNTIME int SWIG_Octave_ConvertPtrAndOwn(octave_value ov, void **ptr, swig_t (ov.is_matrix_type() && ov.rows() == 0 && ov.columns() == 0) ) { if (ptr) *ptr = 0; - return SWIG_OK; + return (flags & SWIG_POINTER_NO_NULL) ? SWIG_NullReferenceError : SWIG_OK; } if (ov.type_id() != octave_swig_ref::static_type_id()) return SWIG_ERROR; |