summaryrefslogtreecommitdiff
path: root/ext/pgsql
diff options
context:
space:
mode:
authorMatteo Beccati <mbeccati@php.net>2013-08-22 15:34:11 +0200
committerMatteo Beccati <mbeccati@php.net>2013-08-22 15:34:11 +0200
commit908da14bd1131c5c35d3f206734e9f8f42872b33 (patch)
tree125318172bdd211fa21a0c202f64ba232b4d53da /ext/pgsql
parentc0d99fd76a37785d357ffe7a0fee8715108d3dd5 (diff)
parentd5987478a8fd566775510c08993cc933267a3765 (diff)
downloadphp-git-908da14bd1131c5c35d3f206734e9f8f42872b33.tar.gz
Merge branch 'PHP-5.4' into PHP-5.5
* PHP-5.4: Fixed other compiler warnings
Diffstat (limited to 'ext/pgsql')
-rw-r--r--ext/pgsql/pgsql.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c
index 2670914b78..35eb09e584 100644
--- a/ext/pgsql/pgsql.c
+++ b/ext/pgsql/pgsql.c
@@ -63,6 +63,7 @@
#define PGSQL_MAX_LENGTH_OF_LONG 30
#define PGSQL_MAX_LENGTH_OF_DOUBLE 60
+#if LONG_MAX < UINT_MAX
#define PGSQL_RETURN_OID(oid) do { \
if (oid > LONG_MAX) { \
smart_str s = {0}; \
@@ -72,7 +73,9 @@
} \
RETURN_LONG((long)oid); \
} while(0)
-
+#else
+#define PGSQL_RETURN_OID(oid) (RETURN_LONG((long)oid))
+#endif
#if HAVE_PQSETNONBLOCKING
#define PQ_SETNONBLOCKING(pg_link, flag) PQsetnonblocking(pg_link, flag)