From 062edfe5273d76c5aaa2e76cdc53534bd17f5a6c Mon Sep 17 00:00:00 2001 From: Nik Date: Mon, 5 Jun 2023 09:48:33 +0200 Subject: [PATCH] includes/std: Fixed `std::fxpt::to_fixed` conversion issue --- includes/std/fxpt.pat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/std/fxpt.pat b/includes/std/fxpt.pat index 90b5233..8af08cf 100644 --- a/includes/std/fxpt.pat +++ b/includes/std/fxpt.pat @@ -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))); }; /**