From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5473 invoked by alias); 18 Jun 2004 12:08:17 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 5455 invoked from network); 18 Jun 2004 12:08:15 -0000 Received: from unknown (HELO smtp-relay-8.adobe.com) (192.150.22.8) by sourceware.org with SMTP; 18 Jun 2004 12:08:15 -0000 Received: from inner-relay-3.corp.adobe.com (inner-relay-3 [153.32.251.51]) by smtp-relay-8.adobe.com (8.12.10/8.12.10) with ESMTP id i5IC7lSO029571; Fri, 18 Jun 2004 05:07:52 -0700 (PDT) Received: from iplan-mn (iplan-mn.corp.adobe.com [130.248.25.5]) by inner-relay-3.corp.adobe.com (8.12.9/8.12.9) with ESMTP id i5IC7kkq021671; Fri, 18 Jun 2004 05:07:46 -0700 (PDT) Received: from mn-eljayet.adobe.com ([130.248.178.70]) by iplan-mn.corp.adobe.com (iPlanet Messaging Server 5.2 HotFix 1.21 (built Sep 8 2003)) with ESMTP id <0HZI00FQY70XEI@iplan-mn.corp.adobe.com>; Fri, 18 Jun 2004 07:07:46 -0500 (CDT) Date: Fri, 18 Jun 2004 12:08:00 -0000 From: Eljay Love-Jensen Subject: Re: long long constant In-reply-to: X-Sender: eljay@iplan-mn.corp.adobe.com To: Vincent Torri , gcc-help@gcc.gnu.org Message-id: <6.1.1.1.0.20040618070731.021fcc50@iplan-mn.corp.adobe.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT References: X-SW-Source: 2004-06/txt/msg00184.txt.bz2 Hi Vincent, Both long long, and long long numeric literals, are extensions. A long long numeric literal requires the LL suffix. The compiler doesn't automagically promote "too big" numeric literals into long longs. My recommendation is to rely upon the 5 year old C99 header file (even in C++), and use their facilities. #include static int64_t const rounder = INT64_C(0x0000400000004000); HTH, --Eljay