Re: Win64 warnings about size_t

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Win64 warnings about size_t
Дата
Msg-id 17991.1262374387@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Win64 warnings about size_t  (Magnus Hagander <magnus@hagander.net>)
Ответы Re: Win64 warnings about size_t  (Magnus Hagander <magnus@hagander.net>)
Список pgsql-hackers
Magnus Hagander <magnus@hagander.net> writes:
> On Fri, Jan 1, 2010 at 20:12, Peter Eisentraut <peter_e@gmx.net> wrote:
>> This shouldn't be a problem for the same reason that casting size_t to
>> int is not a problem in the PostgreSQL backend code, but perhaps writing
>> 1L << ... would fix it.

> 1L didn't fix it. 1LL did, however.

... and would break things on many many other platforms.

Use "(Size) 1" instead of "1" if you really want to suppress this.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: Win64 warnings about size_t
Следующее
От: Tom Lane
Дата:
Сообщение: Re: win32 socket definition