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