Thanks to Atri Bhattacharya <badshah400@gmail.com> for the spot.
Change-Id: I1c9abdc3d36ca0b43005dbc2f71caa6a45739eff
* Bug #13258 fixed - Bad number display in datatips fixed.
+* Bug #13267 fixed - Implicit typecasts in scicos.c have been fixed.
+
* Bug #13271 fixed - plot2d with logarithmic scale and %nan value freezed Scilab.
src/modelica_compiler/*.obj
#
-
-*.mli
-
XML2Modelica
XML2Modelica.ocamlc
xml2modelica.exe
if (ddaskr_mem == NULL)
{
DDASProcessError(NULL, IDA_MEM_NULL, "DDASKR", "DDaskrSetUserData", MSG_NO_MEM);
- return(IDA_MEM_NULL);
+ return (IDA_MEM_NULL);
}
ddas_mem = (DDaskrMem) ddaskr_mem;
user_data = User_data;
- return(IDA_SUCCESS);
+ return (IDA_SUCCESS);
}
/* =============================
* Ensure that ddaskr will consider it via flag info[16], and stock it in iwork[33].
*/
-int DDaskrSetMaxNumSteps (void * ddaskr_mem, int maxnh)
+int DDaskrSetMaxNumSteps (void * ddaskr_mem, long int maxnh)
{
DDaskrMem ddas_mem = NULL;
if (tOld == NULL)
{
DDASProcessError(ddas_mem, IDA_ILL_INPUT, "DDASKR", "DDaskrSolve", MSG_TRET_NULL);
- return(IDA_ILL_INPUT);
+ return (IDA_ILL_INPUT);
}
if ((itask != DDAS_NORMAL) && (itask != DDAS_ONE_STEP))
if (ddaskr_mem == NULL)
{
DDASProcessError(NULL, IDA_MEM_NULL, "DDASKR", "DDaskrSetErrHandlerFn", MSG_NO_MEM);
- return(IDA_MEM_NULL);
+ return (IDA_MEM_NULL);
}
ddas_mem = (DDaskrMem) ddaskr_mem;
ehfun = ehFun;
- return(IDA_SUCCESS);
+ return (IDA_SUCCESS);
}
/* =============================
int DDaskrSetStopTime (void * ddaskr_mem, realtype tcrit);
// Sets the maximum number of steps in an integration interval
-int DDaskrSetMaxNumSteps (void * ddaskr_mem, int maxnh);
+int DDaskrSetMaxNumSteps (void * ddaskr_mem, long int maxnh);
// Sets the maximum number of Jacobian or preconditioner evaluations
int DDaskrSetMaxNumJacsIC (void * ddaskr_mem, int maxnj);
int job = 0;
int lab[40];
- nblk = (int)(scicos_imp.nblk);
+ nblk = scicos_imp.nblk[0];
F2C(cvstr)(n, lab, *label, &job, *n);
*kfun = 0;
{
return (2); /* undefined import table scicos is not running */
}
- nblk = (int)(scicos_imp.nblk);
+ nblk = scicos_imp.nblk[0];
*kfun = 0;
for (k = 0; k < nblk; k++)
int (* DAEGetRootInfo) (void*, int*);
int (* DAESStolerances) (void*, realtype, realtype);
int (* DAEGetConsistentIC) (void*, N_Vector, N_Vector);
- int (* DAESetMaxNumSteps) (void*, int*);
+ int (* DAESetMaxNumSteps) (void*, long int);
int (* DAESetMaxNumJacsIC) (void*, int);
int (* DAESetMaxNumItersIC) (void*, int);
int (* DAESetMaxNumStepsIC) (void*, int);