scilab: fix matrix2 example compilation warnings
This commit is contained in:
parent
784a901bc4
commit
f93e23b32f
2 changed files with 4 additions and 1 deletions
|
|
@ -1,4 +1,7 @@
|
|||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
|
||||
// Double matrix functions
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue