scilab: fix matrix2 example compilation warnings

This commit is contained in:
Simon Marchetto 2014-10-20 17:44:46 +02:00
commit f93e23b32f
2 changed files with 4 additions and 1 deletions

View file

@ -1,4 +1,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
// Double matrix functions

View file

@ -229,7 +229,7 @@ SWIGINTERN int
SWIG_SciString_FromCharPtrArrayAndSize(void *pvApiCtx, int iVarOut, int iRows, int iCols, char **charPtrArray) {
SciErr sciErr;
sciErr = createMatrixOfString(pvApiCtx, SWIG_NbInputArgument(pvApiCtx) + iVarOut, iRows, iCols, charPtrArray);
sciErr = createMatrixOfString(pvApiCtx, SWIG_NbInputArgument(pvApiCtx) + iVarOut, iRows, iCols, (const char* const*) charPtrArray);
if (sciErr.iErr) {
printError(&sciErr, 0);
return SWIG_ERROR;