Code cleanup: avoid some warnings due to implicit uint/int/float/double conversion.

This commit is contained in:
Brecht Van Lommel
2013-06-07 16:06:17 +00:00
parent c24be7ec6e
commit d835d2f4e6
23 changed files with 96 additions and 62 deletions

View File

@@ -88,7 +88,7 @@ template<typename T> struct texture_image {
float frac(float x, int *ix)
{
int i = (int)x - ((x < 0.0f)? 1: 0);
int i = float_to_int(x) - ((x < 0.0f)? 1: 0);
*ix = i;
return x - (float)i;
}