Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aX93n-0007fu-Me for pgsql-committers@arkaria.postgresql.org; Sat, 20 Feb 2016 15:03:03 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aX93n-0000u3-43 for pgsql-committers@arkaria.postgresql.org; Sat, 20 Feb 2016 15:03:03 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aX93a-0000YX-Fk for pgsql-committers@postgresql.org; Sat, 20 Feb 2016 15:02:50 +0000 Received: from mail-vk0-x22a.google.com ([2607:f8b0:400c:c05::22a]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1aX93S-0001Zd-TD for pgsql-committers@postgresql.org; Sat, 20 Feb 2016 15:02:49 +0000 Received: by mail-vk0-x22a.google.com with SMTP id e185so97981398vkb.1 for ; Sat, 20 Feb 2016 07:02:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=AO1HVByUaTcei8+sYhqTvaOVKHbxQdcP8ZTGy+HMPPU=; b=YDMQBpffG7lRCd92nMMv9fq8f5ZqV8t12ZOIBK8Yjh63v2Exb4THH1tHLMOH+AurJz rJriZIRthYvU1NSwzvnQVDAa7w2zb2+FvBs0Mj+tt526SyNmtkJgXDzQs6HUQnz/5mI0 www5EW/uBaYOWCXe2G0+vi+jAuOnl6ggWAXdDdTXGCC6uxNDOVgFuZZpO20ibUxm0bXP cWJg9aepHz6u1f8V9arxc9Ss7bBnbEdOKszz1AbxEwrs1o2nu6uiPPNkaGVTgaw3Ndtn ydlHtP6olqAJwI1pk4pmXX1tdc7Y0UBwWNYTDQMcSWfJc6yObCPePVeDYerVb/SSM2jY kJlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=AO1HVByUaTcei8+sYhqTvaOVKHbxQdcP8ZTGy+HMPPU=; b=H7jzGKAC/yk6p5xX7elKJ2ZLJ7EpqO+vcrrLhB7PdsmnNoiNmi0PouqZoeNvBLN+8X xpMldbyowPEH+TRie0RhYM4z6uqfeX/itBqzqMK1hTASzklw/4GxPN/CJFSi59eJ7kLc 5OZTNIa5dpWCQu0QK6iWapZzVI3I36+XEVz4dIRYLV8UhRlkfm5ssuS6ux3Nj1/p0+8O yWXcmYRFva9CJ0x1Ne0XkRNAKvBM6DkdCTjCUIrVa+4h8Gysu8Y1DEMBdLJNF5CZnPzF /orAvw9paW9w9WyUERN6SW3kRWqBBjQ0aJOmK2HFi/QRc58aiALmJh/htbcJviHE2Mvd T8GA== X-Gm-Message-State: AG10YORII2hGWtV5ILbnzUk42NGxHgLzHCiSEDUs60z1MEkz0Rfbgjg+JYrRrGUlcJhzD3XVY7p60UEFy1OlhQ== MIME-Version: 1.0 X-Received: by 10.31.2.14 with SMTP id 14mr16008972vkc.9.1455980560875; Sat, 20 Feb 2016 07:02:40 -0800 (PST) Received: by 10.159.38.115 with HTTP; Sat, 20 Feb 2016 07:02:40 -0800 (PST) In-Reply-To: <5432.1455980047@sss.pgh.pa.us> References: <5432.1455980047@sss.pgh.pa.us> Date: Sat, 20 Feb 2016 15:02:40 +0000 Message-ID: Subject: Re: pgsql: Fix pg_size_bytes() to be more portable. From: Dean Rasheed To: Tom Lane Cc: pgsql-committers@postgresql.org Content-Type: text/plain; charset=UTF-8 X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org On 20 February 2016 at 14:54, Tom Lane wrote: > Dean Rasheed writes: >> Fix pg_size_bytes() to be more portable. >> Commit 53874c5228fe16589a4d01b3e1fab3678e0fd8e3 broke various 32-bit >> buildfarm machines because it incorrectly used an 'L' suffix for what >> needed to be a 64-bit literal. Thanks to Michael Paquier for helping >> to diagnose this. > > That's still not right: not all compilers support "long long", and the > ones that don't won't have "LL" notation either. > > Project style is to use something like "(uint64) 1024" instead. > OK, will fix. BTW, I found a couple of instances of 'LL' in ecpglib/prepare.c, which is why I thought it was OK to use it. Regards, Dean -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers