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

From: Eli Zaretskii <[email-masked]>
Date: Thu, 14 Aug 2008 22:24:32 +0300

> Date: Thu, 14 Aug 2008 12:57:56 -0400
> From: Francis Litterio <[email-masked]>
> Cc: 
> 
> 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.

Thank you for your report.  Can you show the error text?

> -    totphys = memstex.ullTotalPhys / 1024.0;
> +    totphys = (signed __int64)memstex.ullTotalPhys / 1024.0;

Does it help to use 1024.0L here instead of just 1024.0?