Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 Subject: printf does not print long long ints properly From: =?iso-8859-2?B?RGFuaWVsIEplbGnxc2tp?= Content-Type: text/plain; format=flowed; charset=iso-8859-2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Date: Sat, 24 Jan 2004 01:41:30 +0100 Message-ID: User-Agent: Opera7.22/Win32 M2 build 3221 X-Virus-Scanned: by AMaViS snapshot-20020300 when I compile the following program: #include 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/