| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| To: | cygwin AT cygwin DOT com |
| From: | Rolf Campbell <Endlisnis AT mailc DOT net> |
| Subject: | Re: printf does not print long long ints properly |
| Date: | Fri, 23 Jan 2004 19:48:03 -0500 |
| Lines: | 26 |
| Message-ID: | <busfc3$kh5$1@sea.gmane.org> |
| References: | <opr1877gqc89ubik AT smtp DOT wp DOT pl> |
| Mime-Version: | 1.0 |
| X-Complaints-To: | usenet AT sea DOT gmane DOT org |
| User-Agent: | Mozilla Thunderbird 0.5a (20040105) |
| In-Reply-To: | <opr1877gqc89ubik@smtp.wp.pl> |
"ll" is the long long prefix.
Daniel Jeliński wrote:
> when I compile the following program:
>
> #include <stdio.h>
> main()
> {
> long long i;
> i=1000000;
> i*=1000000;
> printf("%Ld",i);
> return 0;
> }
>
> I get the following:
> -727379968
> instead of the expected 1000000000000
>
> I am using gcc 3.3.1
> the same code works nicely on linux machine with gcc 3.3.1
>
> is any other information necessary?
>
> dj
>
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |