mirror of
https://github.com/glest/glest-source.git
synced 2025-08-30 19:29:47 +02:00
fixed windows build and added new test to vc++ project
This commit is contained in:
@@ -330,7 +330,7 @@ inline T truncateDecimal(const T &value, int precision=6) {
|
||||
return result;
|
||||
*/
|
||||
|
||||
T precNum = pow(10, precision);
|
||||
T precNum = std::pow((T)10, (T)precision);
|
||||
T result = xs_CRoundToInt(value * precNum);
|
||||
result /= precNum;
|
||||
return result;
|
||||
|
Reference in New Issue
Block a user