From 978bdedf3338a6389e552ab7ccad17956d55d0e9 Mon Sep 17 00:00:00 2001 From: mrdudz Date: Thu, 21 Jul 2022 02:38:20 +0200 Subject: [PATCH] switch off msvc warning --- src/common/fp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/common/fp.c b/src/common/fp.c index 2acdbf9f3..02762a11e 100644 --- a/src/common/fp.c +++ b/src/common/fp.c @@ -242,7 +242,8 @@ Double FP_D_Div (Double Left, Double Right) return D; } - +#pragma warning( push ) +#pragma warning( disable : 4244 ) // conversion from double to float uint32_t FP_D_As32bitRaw(Double Val) /* converts double into 32bit (float) and then returns its raw content as a 32bit int */ { @@ -254,3 +255,4 @@ uint32_t FP_D_As32bitRaw(Double Val) lval = *lptr; return lval; } +#pragma warning( pop )