Skip to content

Commit

Permalink
Fixed -Wimplicit-int-float-conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
walbourn committed Apr 30, 2020
1 parent cde949a commit 598da3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DirectXMesh/DirectXMeshOptimizeLRU.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ namespace
else
{
// Points for being high in the cache.
const float scaler = 1.0f / (vertexCacheSize - 3);
score = 1.0f - (cachePosition - 3) * scaler;
const float scaler = 1.0f / float(vertexCacheSize - 3u);
score = 1.0f - float(cachePosition - 3u) * scaler;
score = powf(score, FindVertexScore_CacheDecayPower);
}
}
Expand Down

0 comments on commit 598da3b

Please sign in to comment.