Commit 811be0df authored by Alex Converse's avatar Alex Converse
Browse files

Fix VS build.

Add a cast on a double to unsigned assignment.

Change-Id: I4abce7cfa13e145ed0c71469844ac9b274aa1411
parent dc9d36c0
......@@ -49,7 +49,7 @@ static void calc_centroids(const double *data, double *centroids,
const uint8_t *indices, int n, int k, int dim) {
int i, j, index;
int count[PALETTE_MAX_SIZE];
unsigned int rand_state = data[0];
unsigned int rand_state = (unsigned int)data[0];
assert(n <= 32768);
......
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