scilab: remove compilation warnings
This commit is contained in:
parent
0c09b00d6e
commit
457ea5d209
3 changed files with 3 additions and 4 deletions
|
|
@ -125,7 +125,6 @@ SWIG_SciBoolean_AsIntArrayAndSize(void *pvApiCtx, int iVar, int *iRows, int *iCo
|
|||
}
|
||||
|
||||
if (isBooleanType(pvApiCtx, piAddrVar)) {
|
||||
int i;
|
||||
sciErr = getMatrixOfBoolean(pvApiCtx, piAddrVar, iRows, iCols, piValue);
|
||||
if (sciErr.iErr) {
|
||||
printError(&sciErr, 0);
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ SWIG_FromSet_Sequence_dec(bool)(int size, int *pSequence) {
|
|||
|
||||
SWIGINTERN bool
|
||||
SWIG_AsVal_SequenceItem_dec(bool)(SwigSciObject obj, int *pSequence, int iItemIndex) {
|
||||
return pSequence[iItemIndex];
|
||||
return (bool) pSequence[iItemIndex];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
*char
|
||||
*
|
||||
* Scilab matrix of string <-> C++ std::string container
|
||||
*
|
||||
*/
|
||||
|
|
@ -88,7 +88,7 @@ SWIG_AsVal_SequenceItem_dec(std::string)(SwigSciObject obj, char **pSequence, in
|
|||
|
||||
SWIGINTERN int
|
||||
SWIG_From_SequenceItem_dec(std::string)(char **pSequence, int iItemIndex, std::string itemValue) {
|
||||
char *pChar = new char(itemValue.size() + 1);
|
||||
char *pChar = new char((int) itemValue.size() + 1);
|
||||
strcpy(pChar, itemValue.c_str());
|
||||
pSequence[iItemIndex] = pChar;
|
||||
return SWIG_OK;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue