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