diff options
-rw-r--r-- | sci_gateway/cpp/sci_iofunc.cpp | 6 |
1 files 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; |