summaryrefslogtreecommitdiff
path: root/2.3-1/src/c/CACSD/obscont/dobsconta.c
diff options
context:
space:
mode:
Diffstat (limited to '2.3-1/src/c/CACSD/obscont/dobsconta.c')
-rw-r--r--2.3-1/src/c/CACSD/obscont/dobsconta.c6
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..88837692 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];
+ (int)dom = 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);