Commit 2357382a authored by Sarah Parker's avatar Sarah Parker Committed by James Zern

Add cast to double in division of 2 integers

This addresses visual studio warnings.

Change-Id: Ia57739d8954a81ba5369f05aaf96cdb3144fd0a1
parent 172f3c10
......@@ -471,7 +471,7 @@ static double raw_motion_error_stdev(int *raw_motion_err_list,
for (i = 0; i < raw_motion_err_counts; i++) {
sum_raw_err += raw_motion_err_list[i];
}
raw_err_avg = sum_raw_err / raw_motion_err_counts;
raw_err_avg = (double)sum_raw_err / raw_motion_err_counts;
for (i = 0; i < raw_motion_err_counts; i++) {
raw_err_stdev += (raw_motion_err_list[i] - raw_err_avg) *
(raw_motion_err_list[i] - raw_err_avg);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment