This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: bug in lrint [was: FW: Printing long int in C program under cygwin64]
- From: Steven Penny <svnpenn at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 25 May 2017 18:43:58 -0700 (PDT)
- Subject: Re: bug in lrint [was: FW: Printing long int in C program under cygwin64]
- Authentication-results: sourceware.org; auth=none
- References: <f38a6091-a097-baec-5f9b-927070cc4d5f@redhat.com>
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 <stdio.h>
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