| От | Tom Lane |
|---|---|
| Тема | Re: pgsql: Fix pg_size_bytes() to be more portable. |
| Дата | |
| Msg-id | 5432.1455980047@sss.pgh.pa.us обсуждение |
| Ответ на | pgsql: Fix pg_size_bytes() to be more portable. (Dean Rasheed <dean.a.rasheed@gmail.com>) |
| Ответы |
Re: pgsql: Fix pg_size_bytes() to be more portable.
|
| Список | pgsql-committers |
Dean Rasheed <dean.a.rasheed@gmail.com> 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.
regards, tom lane
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера