1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-25 14:07:46 +00:00

Fix compilation issues on *NIX platforms

This commit is contained in:
Rushi 2022-01-14 19:02:50 +01:00
parent f093aba377
commit df58683c6f
2 changed files with 2 additions and 1 deletions

View file

@ -2,6 +2,7 @@
#define XIV_UTILS_ZLIB_H
#include <cstdint>
#include <cstddef>
#include <vector>
namespace xivps3::utils::zlib

View file

@ -139,7 +139,7 @@ float Util::trunc( float value, uint8_t digitsToRemain )
if( digitsToRemain == 0 )
return std::floor( value );
float factor = std::powf( 10, digitsToRemain );
float factor = std::pow( 10, digitsToRemain );
return std::floor( value * factor ) / factor;
}