diff options
author | Simon Marchetto <simon.marchetto@scilab-enterprises.com> | 2016-12-20 10:09:07 +0100 |
---|---|---|
committer | Simon Marchetto <simon.marchetto@scilab-enterprises.com> | 2016-12-20 10:09:07 +0100 |
commit | e517128e0877130e3f29603a689dfb6e2c9cd792 (patch) | |
tree | ffc49810a32e87d6ba9a0e46366d9fb3a00da29c /Lib/scilab | |
parent | 94bee6b35a056d78f24ac6257de149b2bfedbf59 (diff) | |
download | swig-e517128e0877130e3f29603a689dfb6e2c9cd792.tar.gz |
[Scilab] fix compilation, missing return
Diffstat (limited to 'Lib/scilab')
-rw-r--r-- | Lib/scilab/scitypemaps.swg | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/scilab/scitypemaps.swg b/Lib/scilab/scitypemaps.swg index 1c2d9da30..4cf0da3f1 100644 --- a/Lib/scilab/scitypemaps.swg +++ b/Lib/scilab/scitypemaps.swg @@ -130,7 +130,7 @@ SWIG_Check_SciDoubleOrInt(void *pvApiCtx, SwigSciObject iVar, int iIntegerType) SciErr sciErr = getVarAddressFromPosition(pvApiCtx, iVar, &piAddrVar); if (sciErr.iErr) { printError(&sciErr, 0); - return SWIG_ERROR; + return 0; } ret = isIntegerType(pvApiCtx, piAddrVar); if (ret == 1) { @@ -138,13 +138,14 @@ SWIG_Check_SciDoubleOrInt(void *pvApiCtx, SwigSciObject iVar, int iIntegerType) sciErr = getMatrixOfIntegerPrecision(pvApiCtx, piAddrVar, &iPrec); if (sciErr.iErr) { printError(&sciErr, 0); - return SWIG_ERROR; + return 0; } ret = (iPrec == iIntegerType) ? 1 : 0; } else { ret = isDoubleType(pvApiCtx, piAddrVar); } + return ret; } } |