Commit 0eda2705 authored by Jim Bankoski's avatar Jim Bankoski Committed by James Zern

pvq_encoder.c : float-conversion warning fix

Fixes a warning error on gcc 4.9 related to float conversions.

Change-Id: I1ba5410d8bff6aff21e2bbe1b4d34740336182cf
parent a414887a
......@@ -55,7 +55,7 @@ static double od_rsqrt_table(int i) {
static double od_custom_rsqrt_dynamic_table(const double* table,
const int table_size, const double start, const int i) {
if (i < table_size) return table[i];
else return od_rsqrt_table(start + 2*i + 1);
else return od_rsqrt_table((int)(start + 2*i + 1));
}
/*Fills tables used in od_custom_rsqrt_dynamic_table for a given start.*/
......@@ -63,7 +63,7 @@ static void od_fill_dynamic_rqrt_table(double *table, const int table_size,
const double start) {
int i;
for (i = 0; i < table_size; i++)
table[i] = od_rsqrt_table(start + 2*i + 1);
table[i] = od_rsqrt_table((int)(start + 2*i + 1));
}
/** Find the codepoint on the given PSphere closest to the desired
......
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