scilab: fix C90 non conformance
This commit is contained in:
parent
1846dec899
commit
e2e06c0031
1 changed files with 6 additions and 5 deletions
|
|
@ -196,13 +196,14 @@ SwigScilabPtrToObject(void *pvApiCtx, int iVar, void **pvObj, swig_type_info *de
|
|||
if (pvPtr) {
|
||||
if (descriptor) {
|
||||
swig_cast_info *cast = SWIG_TypeCheck(SWIG_TypeName((swig_type_info *)pvTypeinfo), descriptor);
|
||||
if (!cast) {
|
||||
if (cast) {
|
||||
int newmemory = 0;
|
||||
pvPtr = SWIG_TypeCast(cast, pvPtr, &newmemory);
|
||||
// TODO newmemory
|
||||
}
|
||||
else {
|
||||
return SWIG_ERROR;
|
||||
}
|
||||
|
||||
int newmemory = 0;
|
||||
pvPtr = SWIG_TypeCast(cast, pvPtr, &newmemory);
|
||||
// TODO newmemory
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue