Skip to content
Snippets Groups Projects
Commit ca5a75fb authored by Andrew Dunstan's avatar Andrew Dunstan
Browse files

Silence compiler warning about casting HANDLE to long on WIN64.

parent a7cb69a5
No related branches found
No related tags found
No related merge requests found
......@@ -2277,8 +2277,14 @@ regression_main(int argc, char *argv[], init_function ifunc, test_function tfunc
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"),
port, (unsigned long) postmaster_pid);
port, ULONGPID(postmaster_pid));
}
else
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment