diff options
author | harpreetrathore | 2015-12-17 10:03:13 +0530 |
---|---|---|
committer | harpreetrathore | 2015-12-17 10:03:13 +0530 |
commit | dd31e7a00ffb7263e25c5787490f142da973b19c (patch) | |
tree | fec6211fec582f9c62b7018d36f9e2b54b0b79dd | |
parent | fd86d04fdabb5719fff776af7dafe8f42dc39141 (diff) | |
download | FOSSEE-Optimization-toolbox-dd31e7a00ffb7263e25c5787490f142da973b19c.tar.gz FOSSEE-Optimization-toolbox-dd31e7a00ffb7263e25c5787490f142da973b19c.tar.bz2 FOSSEE-Optimization-toolbox-dd31e7a00ffb7263e25c5787490f142da973b19c.zip |
Update sci_iofunc.cpp
-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; |