From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#722: More Visual Studio 6.0 compiler errors on Windows XP Date: Fri, 15 Aug 2008 19:17:38 +0300 Message-ID: References: Reply-To: Eli Zaretskii , 722@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1218817724 25085 80.91.229.12 (15 Aug 2008 16:28:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 15 Aug 2008 16:28:44 +0000 (UTC) Cc: schwab@suse.de, 722@emacsbugs.donarmstrong.com, bug-submit-list@donarmstrong.com, bug-gnu-emacs@gnu.org, don@donarmstrong.com To: Francis Litterio , 722@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 15 18:29:35 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KU2B3-0002zO-FO for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Aug 2008 18:29:26 +0200 Original-Received: from localhost ([127.0.0.1]:36687 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KU2A4-00052v-Hz for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Aug 2008 12:28:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KU29I-0004WL-OH for bug-gnu-emacs@gnu.org; Fri, 15 Aug 2008 12:27:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KU29H-0004Ul-6S for bug-gnu-emacs@gnu.org; Fri, 15 Aug 2008 12:27:36 -0400 Original-Received: from [199.232.76.173] (port=34715 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KU29G-0004Ub-Vg for bug-gnu-emacs@gnu.org; Fri, 15 Aug 2008 12:27:35 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:50074) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KU29G-0007GJ-2v for bug-gnu-emacs@gnu.org; Fri, 15 Aug 2008 12:27:34 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7FGRP5A023338; Fri, 15 Aug 2008 09:27:25 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m7FGPAfU022484; Fri, 15 Aug 2008 09:25:10 -0700 X-Loop: don@donarmstrong.com Resent-From: Eli Zaretskii Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs , don@donarmstrong.com Resent-Date: Fri, 15 Aug 2008 16:25:10 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 722 X-Emacs-PR-Package: emacs,w32 X-Emacs-PR-Keywords: Original-Received: via spool by 722-submit@emacsbugs.donarmstrong.com id=B722.121881706920302 (code B ref 722); Fri, 15 Aug 2008 16:25:10 +0000 Original-Received: (at 722) by emacsbugs.donarmstrong.com; 15 Aug 2008 16:17:49 +0000 Original-Received: from mtaout3.012.net.il (mtaout3.012.net.il [84.95.2.7]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7FGHjAl020289 for <722@emacsbugs.donarmstrong.com>; Fri, 15 Aug 2008 09:17:47 -0700 Original-Received: from HOME-C4E4A596F7 ([84.229.211.50]) by i_mtaout3.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0K5N00DPLHA13QZ0@i_mtaout3.012.net.il> for 722@emacsbugs.donarmstrong.com; Fri, 15 Aug 2008 19:18:02 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-CrossAssassin-Score: 2 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Fri, 15 Aug 2008 12:27:36 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:19466 Archived-At: > Date: Fri, 15 Aug 2008 09:35:11 -0400 > From: Francis Litterio > Cc: > > >> - values[7] = make_float ((double)s.st_size); > >> + values[7] = make_float ((signed __int64)s.st_size); > > > > Tell Microsoft to fix their compiler, you are changeing perfectly valid > > C into unportable junk. > > You are preaching to the choir. :) I just want a clean build on Windows. > Emacs has always compiled using VC++ 6.0 in the past, so some change > must have introduced this problem. The problems in w32.c are due to a recent change I did to impement two new primitives, but the change in dired.c that made st_size be unsigned 64-bit type is fairly old. When did you last build the CVS code? > Also, a 64-bit integer (signed or unsigned) cannot safely be cast to > double without loss of data. Yes, when file sizes will start hitting 64-bits, we will start losing precision here. But I hope till then all compilers will have long double data type, and then this code could be fixed.