From e517128e0877130e3f29603a689dfb6e2c9cd792 Mon Sep 17 00:00:00 2001 From: Simon Marchetto Date: Tue, 20 Dec 2016 10:09:07 +0100 Subject: [PATCH] [Scilab] fix compilation, missing return --- Lib/scilab/scitypemaps.swg | 5 +++-- 1 file 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; } }