From 931d7f3196ab39d25a0861cf2d67bd1bf5bd4aa8 Mon Sep 17 00:00:00 2001 From: bkaradzic Date: Wed, 27 Aug 2014 20:10:39 -0700 Subject: [PATCH] Fixed clang warning. --- examples/02-metaballs/metaballs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/02-metaballs/metaballs.cpp b/examples/02-metaballs/metaballs.cpp index 72dc7598..5b497fc2 100644 --- a/examples/02-metaballs/metaballs.cpp +++ b/examples/02-metaballs/metaballs.cpp @@ -431,7 +431,7 @@ uint32_t triangulate(uint8_t* _result, uint32_t _stride, const float* __restrict const int8_t* indices = s_indices[cubeindex]; for (uint32_t ii = 0; indices[ii] != -1; ++ii) { - const float* vertex = verts[indices[ii] ]; + const float* vertex = verts[uint8_t(indices[ii])]; float* xyz = (float*)_result; xyz[0] = _xyz[0] + vertex[0];