diff options
author | siddhu8990 | 2017-05-22 15:13:54 +0530 |
---|---|---|
committer | siddhu8990 | 2017-05-22 15:13:54 +0530 |
commit | 02a004ea1500c403ac1a18a52aaf79aaeb7280ed (patch) | |
tree | 5e55f872e363922a21ad91165628e68e16fea8a3 /2.3-1/src/c/CACSD/obscont/dobsconta.c | |
parent | 5f17dffbfa6d84aee23f7946cfa95e9e5c9995b7 (diff) | |
parent | de82d12658979cd70439f977742f80fac9f6521f (diff) | |
download | Scilab2C-02a004ea1500c403ac1a18a52aaf79aaeb7280ed.tar.gz Scilab2C-02a004ea1500c403ac1a18a52aaf79aaeb7280ed.tar.bz2 Scilab2C-02a004ea1500c403ac1a18a52aaf79aaeb7280ed.zip |
Bugs fixed for Scilab 6.0
Diffstat (limited to '2.3-1/src/c/CACSD/obscont/dobsconta.c')
-rw-r--r-- | 2.3-1/src/c/CACSD/obscont/dobsconta.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/2.3-1/src/c/CACSD/obscont/dobsconta.c b/2.3-1/src/c/CACSD/obscont/dobsconta.c index 7e297525..c67b70e2 100644 --- a/2.3-1/src/c/CACSD/obscont/dobsconta.c +++ b/2.3-1/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); |