OSDN Git Service
(root)
/
pg-rex
/
syncrep.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7cb69a
)
Silence compiler warning about casting HANDLE to long on WIN64.
author
Andrew Dunstan
<andrew@dunslane.net>
Tue, 19 Apr 2011 15:21:00 +0000
(11:21 -0400)
committer
Andrew Dunstan
<andrew@dunslane.net>
Tue, 19 Apr 2011 15:21:00 +0000
(11:21 -0400)
src/test/regress/pg_regress.c
patch
|
blob
|
history
diff --git
a/src/test/regress/pg_regress.c
b/src/test/regress/pg_regress.c
index
b9ae622
..
5fe3724
100644
(file)
--- a/
src/test/regress/pg_regress.c
+++ b/
src/test/regress/pg_regress.c
@@
-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
{