From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27813 invoked by alias); 26 May 2017 01:44:00 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 27739 invoked by uid 89); 26 May 2017 01:44:00 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=H*M:google X-HELO: mail-oi0-f54.google.com Received: from mail-oi0-f54.google.com (HELO mail-oi0-f54.google.com) (209.85.218.54) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 26 May 2017 01:43:57 +0000 Received: by mail-oi0-f54.google.com with SMTP id h4so301384756oib.3 for ; Thu, 25 May 2017 18:44:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:subject:to:references :user-agent; bh=reNxODp/gskYwyji7by4ekec5o+hC6aj97zVJ1vUbRA=; b=UBw7CGGmdVD6FgaXoKGVDn8IlUBJ41PiW88Jp1wVz2sSaTUoNBd1m/R39EOWzhhH2p kMC6VK/Rv/sAbfN02w9O8/GOdE9WOpXXNVuMFkyoYAiE1p9vhmftMBIojaAQybNFbiJV Pmn1ri2GYEtzKWRaTeMN1htk6XekHChYOV5nfASUevle8IINACsfZrlRyjBblJIhcsGO x8KBd183482fk5KDRHJ00bkFPtCRPvXBw+nlLpOY4HQzl3LaDUDZLGqMXsa0DUJV0kWt 3D76yZf8sMO8CGWIupdnaq4bGDUhe66VKcXEdV8Yf6VqSVSbtvmSHUzPnFMY2GqDgmIl Hi0Q== X-Gm-Message-State: AODbwcBnNxMHrlXuHREKRHpBc8dEm8w8JydDzxhh9cvoOQM4/JihG5zS KEA0GxkwaHC2wG0q X-Received: by 10.202.56.137 with SMTP id f131mr23016940oia.42.1495763039719; Thu, 25 May 2017 18:43:59 -0700 (PDT) Received: from 9Wk ([2605:6000:9fc0:56:813:bad7:424c:e627]) by smtp.gmail.com with ESMTPSA id c50sm4231964ote.29.2017.05.25.18.43.58 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 May 2017 18:43:58 -0700 (PDT) Message-ID: <5927885e.b5169d0a.fd65e.370a@mx.google.com> Date: Fri, 26 May 2017 01:53:00 -0000 From: Steven Penny X-Google-Original-From: Steven Penny Subject: Re: bug in lrint [was: FW: Printing long int in C program under cygwin64] To: cygwin@cygwin.com References: Content-Type: text/plain; charset=utf8; format=flowed User-Agent: Tryst/2.0.1 (github.com/svnpenn/tryst) X-SW-Source: 2017-05/txt/msg00425.txt.bz2 On Thu, 25 May 2017 13:17:30, Eric Blake wrote: > Correct. Newer gcc's -Wformat-signedness will flag the discrepency. Uh, have you actually tried this? It doesnt do anything: $ cat alfa.c #define __USE_MINGW_ANSI_STDIO 1 #include int main() { printf("%zi %zu %llu\n", __SIZE_MAX__, __SIZE_MAX__, __SIZE_MAX__); } $ x86_64-w64-mingw32-gcc -Wformat-signedness -o alfa alfa.c $ ./alfa -1 18446744073709551615 18446744073709551615 -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple