bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#720: Patch to fix CVS Emacs compilation error on Windows XP SP2.


From: Francis Litterio
Subject: bug#720: Patch to fix CVS Emacs compilation error on Windows XP SP2.
Date: Thu, 14 Aug 2008 12:57:56 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (windows-nt)

When building CVS Emacs on Windows XP SP2 using Visual Studio 6.0, the
following patch is needed to prevent the compiler from displaying an
error about unsigned __int64 not being convertable to double.
--
Fran


--- w32.c~      2008-08-11 13:51:58.372421800 -0400
+++ w32.c       2008-08-14 12:54:29.192936600 -0400
@@ -3817,7 +3817,7 @@
                  attrs);
 
   if (global_memory_status_ex (&memstex))
-    totphys = memstex.ullTotalPhys / 1024.0;
+    totphys = (signed __int64)memstex.ullTotalPhys / 1024.0;
   else if (global_memory_status (&memst))
     totphys = memst.dwTotalPhys / 1024.0;
 







reply via email to

[Prev in Thread] Current Thread [Next in Thread]