diff options
author | siddhu8990 | 2017-05-22 15:13:54 +0530 |
---|---|---|
committer | siddhu8990 | 2017-05-22 15:13:54 +0530 |
commit | b33afdb2311fbe8aad4c5c614c6098585fe2d279 (patch) | |
tree | 3d8db91388dab60159248fb0cfef160ca03cefeb /src/c/CACSD/obscont/dobsconta.c | |
parent | f0e074cc43f04f58aafe00742b9748a09f77894f (diff) | |
parent | e36eac94dd517bb69d3e5782516ee58942451991 (diff) | |
download | Scilab2C_fossee_old-b33afdb2311fbe8aad4c5c614c6098585fe2d279.tar.gz Scilab2C_fossee_old-b33afdb2311fbe8aad4c5c614c6098585fe2d279.tar.bz2 Scilab2C_fossee_old-b33afdb2311fbe8aad4c5c614c6098585fe2d279.zip |
Bugs fixed for Scilab 6.0
Diffstat (limited to 'src/c/CACSD/obscont/dobsconta.c')
-rw-r--r-- | src/c/CACSD/obscont/dobsconta.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/c/CACSD/obscont/dobsconta.c b/src/c/CACSD/obscont/dobsconta.c index 7e29752..c67b70e 100644 --- a/src/c/CACSD/obscont/dobsconta.c +++ b/src/c/CACSD/obscont/dobsconta.c @@ -22,8 +22,8 @@ void dobsconta(double* sys, int sys_rows, int sys_cols, double* Kc, double* Kf, { int no_of_states, no_of_inputs, no_of_outputs, dom = 1; int row,col; - no_of_states = sys[sys_rows*(sys_cols-1)]; - no_of_inputs = sys[sys_rows*(sys_cols-1) + 1]; + no_of_states = (int)sys[sys_rows*(sys_cols-1)]; + no_of_inputs = (int)sys[sys_rows*(sys_cols-1) + 1]; no_of_outputs = sys_rows - no_of_states; int no_of_cols; @@ -85,7 +85,7 @@ void dobsconta(double* sys, int sys_rows, int sys_cols, double* Kc, double* Kf, } } - dom = sys[(sys_rows*(sys_cols-2)) + no_of_states]; + dom = (int)sys[(sys_rows*(sys_cols-2)) + no_of_states]; dmulma(B,no_of_states,no_of_inputs,Kc,no_of_inputs,no_of_states,BKc); dmulma(Kf,no_of_states,no_of_outputs,C,no_of_outputs,no_of_states,KfC); |