From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Davis Herring Newsgroups: gmane.emacs.devel Subject: Re: MS-Windows warnings (was build failure) for Emacs master Date: Tue, 19 Apr 2016 13:19:39 -0600 Organization: XCP-1 Message-ID: <571684CB.103@lanl.gov> References: <56CCD91E.6070507@alice.it> <83egc2ixji.fsf@gnu.org> <56CD798D.7060102@alice.it> <56CD8408.1000701@alice.it> <83wppuggb4.fsf@gnu.org> <56CE2CA7.5050906@alice.it> <83io1cg2pt.fsf@gnu.org> <56DA0327.2030009@alice.it> <83oaatxu72.fsf@gnu.org> <570C4307.6050907@alice.it> <87k2k3t5xb.fsf@russet.org.uk> <570D6093.8010305@alice.it> <570D7C3B.90206@cs.ucla.edu> <571652E3.6030506@lanl.gov> <831t618u09.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1461093631 13930 80.91.229.3 (19 Apr 2016 19:20:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 Apr 2016 19:20:31 +0000 (UTC) Cc: eggert@cs.ucla.edu, angelo.graziosi@alice.it, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 19 21:20:25 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1asbCA-0000rj-9H for ged-emacs-devel@m.gmane.org; Tue, 19 Apr 2016 21:20:22 +0200 Original-Received: from localhost ([::1]:35192 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1asbC9-0002BS-Ku for ged-emacs-devel@m.gmane.org; Tue, 19 Apr 2016 15:20:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54126) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1asbBi-0001MH-3I for emacs-devel@gnu.org; Tue, 19 Apr 2016 15:19:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1asbBe-0003kp-Sc for emacs-devel@gnu.org; Tue, 19 Apr 2016 15:19:54 -0400 Original-Received: from proofpoint5.lanl.gov ([2001:400:4210:400::a5]:42916) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1asbBe-0003kk-LT; Tue, 19 Apr 2016 15:19:50 -0400 Original-Received: from mailrelay2.lanl.gov (mailrelay2.lanl.gov [128.165.4.103]) by mailgate5.lanl.gov (8.15.0.59/8.15.0.59) with ESMTP id u3JJJdt8010632; Tue, 19 Apr 2016 13:19:39 -0600 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by mailrelay2.lanl.gov (Postfix) with ESMTP id 5F59EF0BCB8; Tue, 19 Apr 2016 13:19:39 -0600 (MDT) X-NIE-2-Virus-Scanner: amavisd-new at mailrelay2.lanl.gov Original-Received: from frogger.lanl.gov (frogger.lanl.gov [128.165.123.154]) by mailrelay2.lanl.gov (Postfix) with ESMTP id 4407BF0BCA3; Tue, 19 Apr 2016 13:19:39 -0600 (MDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 In-Reply-To: <831t618u09.fsf@gnu.org> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.15.96, 1.0.3, 0.0.0000 definitions=2016-04-19_13:2016-04-19, 2016-04-19, 1970-01-01 signatures=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 2001:400:4210:400::a5 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:203100 Archived-At: > If GetLastError returned a 64-bit value on 64-bit Windows, as Paul > thought, then your cast wouldn't be correct, of course, because > 'unsigned long' is a 32-bit type on all versions of Windows. I was responding only to the suggestion in its immediate context, not any actual statement (or other confusion) about GetLastError. Paul's text mentions "unsigned int" and "unsigned long". If those are the only two choices, the cast to unsigned long will always succeed. Davis -- This product is sold by volume, not by mass. If it appears too dense or too sparse, it is because mass-energy conversion has occurred during shipping.