Andrew Dunstan <and...@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) (unsigned long) (unsigned long long) (x) #else #define ULONGPID(x) (unsigned long) (x) #endif regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers