Re: Windows 64 bit warnings

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Windows 64 bit warnings
Дата
Msg-id 1626.1303224115@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Windows 64 bit warnings  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes:
> If we cast the HANDLE to a long long first and then truncate it the 
> compiler is silent, it only complains if that's done in one operation.

> So maybe something like:

>     #ifdef WIN64
>     #define ULONGPID(x) (unsigned long) (unsigned long long) (x)
>     #else
>     #define ULONGPID(x) (unsigned long) (x)
>     #endif

... with a comment, please.  Perhaps
   #ifdef WIN64   /* need a series of two casts to convert HANDLE without compiler warning */   #define ULONGPID(x)
(unsignedlong) (unsigned long long) (x)   #else   #define ULONGPID(x) (unsigned long) (x)   #endif
 
        regards, tom lane


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

Предыдущее
От: David Fetter
Дата:
Сообщение: Re: pgbench \for or similar loop
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: Build farm coverage for isolation tests