includes/std: Fixed std::fxpt::to_fixed conversion issue

This commit is contained in:
Nik
2023-06-05 09:48:33 +02:00
committed by GitHub
parent 5b32941801
commit 062edfe527

View File

@@ -28,7 +28,7 @@ namespace std::fxpt {
@return The fixed point representation of flt
*/
fn to_fixed(double flt, u32 precision) {
return fixed((flt * (1 << precision)));
return s128((flt * (1 << precision)));
};
/**