mirror of
https://github.com/postgres/postgres.git
synced 2025-07-24 14:22:24 +03:00
Silence compiler warning about casting HANDLE to long on WIN64.
This commit is contained in:
@ -2277,8 +2277,14 @@ regression_main(int argc, char *argv[], init_function ifunc, test_function tfunc
|
|||||||
|
|
||||||
postmaster_running = true;
|
postmaster_running = true;
|
||||||
|
|
||||||
|
#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
|
||||||
printf(_("running on port %d with pid %lu\n"),
|
printf(_("running on port %d with pid %lu\n"),
|
||||||
port, (unsigned long) postmaster_pid);
|
port, ULONGPID(postmaster_pid));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user