pgsql: Further fixing to make pg_size_bytes() portable.

From: Dean Rasheed <dean(dot)a(dot)rasheed(at)gmail(dot)com>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Further fixing to make pg_size_bytes() portable.
Date: 2016-02-20 15:51:40
Message-ID: E1aX9oq-0006Tk-CP@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Further fixing to make pg_size_bytes() portable.

Not all compilers support "long long" and the "LL" integer literal
suffix, so use a cast to int64 instead.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/740d71842b8e0e798c80f4f841227b6de81b5f43

Modified Files
--------------
src/backend/utils/adt/dbsize.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Joe Conway 2016-02-20 16:31:09 Re: pgsql: Add pg_size_bytes() to parse human-readable size strings.
Previous Message Tom Lane 2016-02-20 15:08:53 Re: pgsql: Fix pg_size_bytes() to be more portable.