Fix warnings in MSVC 2010.

This commit is contained in:
rude
2011-07-24 18:32:11 +02:00
parent 71d4c4a565
commit e1d1ebb2f1
8 changed files with 42 additions and 19 deletions
+6 -1
View File
@@ -66,7 +66,7 @@ struct vertex
float x, y;
float s, t;
};
inline int next_p2(int x)
{
x += (x == 0);
@@ -75,6 +75,11 @@ inline int next_p2(int x)
return ++x;
}
inline float next_p2(float x)
{
return static_cast<float>(next_p2(static_cast<int>(x)));
}
} // love
#endif // LOVE_MATH_H