Re: Supporting huge pages on Windows

Поиск
Список
Период
Сортировка
От Tsunakawa, Takayuki
Тема Re: Supporting huge pages on Windows
Дата
Msg-id 0A3221C70F24FB45833433255569204D1F6BF17B@G01JPEXMBYT05
обсуждение исходный текст
Ответ на Supporting huge pages on Windows  ("Tsunakawa, Takayuki" <tsunakawa.takay@jp.fujitsu.com>)
Ответы Re: Supporting huge pages on Windows
Список pgsql-hackers
From: pgsql-hackers-owner@postgresql.org
> [mailto:pgsql-hackers-owner@postgresql.org] On Behalf Of Amit Kapila
> You should use %zu instead of %llu to print Size type of variable.

I did so at first, but it didn't work with Visual Studio 2010 at hand.  It doesn't support %z which is added in C99.

But "I" (capital i) instead of "ll" seems appropriate as the following page says.  I chose this.

https://en.wikipedia.org/wiki/Printf_format_string

I For signed integer types, causes printf to expect ptrdiff_t-sized integer argument; for unsigned integer types,
causesprintf to expect size_t-sized integer argument. Commonly found in Win32/Win64 platforms. 
 

Regards
Takayuki Tsunakawa



Вложения

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

Предыдущее
От: Vaishnavi Prabakaran
Дата:
Сообщение: Re: PATCH: Batch/pipelining support for libpq
Следующее
От: "Tsunakawa, Takayuki"
Дата:
Сообщение: Re: [bug fix] Savepoint-related statements terminatesconnection