From dd31e7a00ffb7263e25c5787490f142da973b19c Mon Sep 17 00:00:00 2001 From: harpreetrathore Date: Thu, 17 Dec 2015 10:03:13 +0530 Subject: Update sci_iofunc.cpp --- sci_gateway/cpp/sci_iofunc.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sci_gateway/cpp/sci_iofunc.cpp b/sci_gateway/cpp/sci_iofunc.cpp index 395aa3a..04b5639 100644 --- a/sci_gateway/cpp/sci_iofunc.cpp +++ b/sci_gateway/cpp/sci_iofunc.cpp @@ -177,7 +177,7 @@ int getFixedSizeDoubleMatrixInList(int argNum, int itemPos, int rows, int cols, if (sciErr.iErr) { printError(&sciErr, 0); - return 0; + return 1; } } @@ -223,7 +223,7 @@ int returnDoubleMatrixToScilab(int itemPos, int rows, int cols, double *dest) if (sciErr.iErr) { printError(&sciErr, 0); - return 0; + return 1; } AssignOutputVariable(pvApiCtx, itemPos) = nbInputArgument(pvApiCtx)+itemPos; @@ -239,7 +239,7 @@ int returnIntegerMatrixToScilab(int itemPos, int rows, int cols, int *dest) if (sciErr.iErr) { printError(&sciErr, 0); - return 0; + return 1; } AssignOutputVariable(pvApiCtx, itemPos) = nbInputArgument(pvApiCtx)+itemPos; -- cgit