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:
parent
f093aba377
commit
df58683c6f
2 changed files with 2 additions and 1 deletions
1
deps/datReaderPs3/zlib.h
vendored
1
deps/datReaderPs3/zlib.h
vendored
|
@ -2,6 +2,7 @@
|
|||
#define XIV_UTILS_ZLIB_H
|
||||
|
||||
#include <cstdint>
|
||||
#include <cstddef>
|
||||
#include <vector>
|
||||
|
||||
namespace xivps3::utils::zlib
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue