From: Francis Litterio <flitterio@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: bug-gnu-emacs@gnu.org, 720@emacsbugs.donarmstrong.com
Subject: bug#720: Patch to fix CVS Emacs compilation error on Windows XP SP2.
Date: Thu, 14 Aug 2008 16:15:04 -0400 [thread overview]
Message-ID: <uprob73ae.fsf@gmail.com> (raw)
In-Reply-To: <mailman.16704.1218743250.18990.bug-gnu-emacs@gnu.org> (Eli Zaretskii's message of "Thu\, 14 Aug 2008 22\:24\:32 +0300")
Eli Zaretskii wrote:
>> From: Francis Litterio
>>
>> 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?
Sorry for omitting that. The error was:
w32.c(3820) : error C2520: conversion from unsigned __int64 to double not implemented, use signed __int64
>> - 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?
Nope. Same error.
Else-thread, Stefan Monnier asked:
> Wouldn't it be better to cast to (double) ?
That doesn't help either. Each of these variations causes the same error:
totphys = (double)(memstex.ullTotalPhys / 1024.0);
totphys = memstex.ullTotalPhys / (double)1024.0;
totphys = (double)memstex.ullTotalPhys / 1024.0L;
totphys = (double)memstex.ullTotalPhys / (double)1024.0;
--
Fran
next prev parent reply other threads:[~2008-08-14 20:15 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <uskt6dvo2.fsf@gnu.org>
2008-08-14 16:57 ` bug#720: Patch to fix CVS Emacs compilation error on Windows XP SP2 Francis Litterio
2008-08-14 19:24 ` Eli Zaretskii
2008-08-14 19:54 ` Stefan Monnier
2008-08-14 20:20 ` Eli Zaretskii
2008-08-15 19:31 ` Stefan Monnier
[not found] ` <mailman.16704.1218743250.18990.bug-gnu-emacs@gnu.org>
2008-08-14 20:15 ` Francis Litterio [this message]
2008-08-15 8:22 ` Eli Zaretskii
2008-08-15 19:34 ` Stefan Monnier
[not found] ` <mailman.16768.1218790062.18990.bug-gnu-emacs@gnu.org>
2008-08-15 13:22 ` Francis Litterio
2008-08-15 16:15 ` Eli Zaretskii
2008-08-15 17:11 ` Fran Litterio
2008-08-15 17:37 ` Eli Zaretskii
2008-08-15 17:45 ` bug#720: marked as done (Patch to fix CVS Emacs compilation error on Windows XP SP2.) Emacs bug Tracking System
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=uprob73ae.fsf@gmail.com \
--to=flitterio@gmail.com \
--cc=720@emacsbugs.donarmstrong.com \
--cc=bug-gnu-emacs@gnu.org \
--cc=eliz@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).