[1/2]winetest: fix a cast

André Hentschel nerv at dawncrow.de
Sat Dec 19 11:00:46 CST 2009


without brackets the 1.5 may get ignored (it does on my machine)
---
 programs/winetest/send.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/programs/winetest/send.c b/programs/winetest/send.c
index 2b4073a..b7cdcb2 100644
--- a/programs/winetest/send.c
+++ b/programs/winetest/send.c
@@ -301,7 +301,7 @@ send_file_wininet (const char *name)
         report (R_WARNING,
                 "File too big (%.1f MB > 1.5 MB); submitting partial report.",
                 filesize/1024.0/1024);
-        filesize = (DWORD) 1.5*1024*1024;
+        filesize = (DWORD)(1.5*1024*1024);
     }
 
     report (R_STATUS, "Opening HTTP connection to " SERVER_NAME);
-- 

Best Regards, André Hentschel



More information about the wine-patches mailing list