rpcrt4/tests: Fix a Visual C++ double to float conversion warning.
Francois Gouget
fgouget at free.fr
Sun May 27 18:17:17 CDT 2007
---
Unless explicitly qualified, a decimal number is of type double. This
then causes Visual C++ to warn that there may be a loss of precision
when converting a float for the assignment (though it's quite unlikely
in this case).
dlls/rpcrt4/tests/ndr_marshall.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/rpcrt4/tests/ndr_marshall.c b/dlls/rpcrt4/tests/ndr_marshall.c
index cf09413..4e26d48 100644
--- a/dlls/rpcrt4/tests/ndr_marshall.c
+++ b/dlls/rpcrt4/tests/ndr_marshall.c
@@ -437,7 +437,7 @@ static void test_simple_types(void)
*(ULONGLONG*)(wiredata + 2 * sizeof(void*)) = ll;
test_pointer_marshal(fmtstr_up_longlong, &ll, 8, wiredata, 16, NULL, 0, "up_longlong");
- f = 3.1415;
+ f = 3.1415f;
*(void**)wiredata = &f;
*(float*)(wiredata + sizeof(void*)) = f;
test_pointer_marshal(fmtstr_up_float, &f, 4, wiredata, 8, NULL, 0, "up_float");
--
1.4.4.4
More information about the wine-patches
mailing list