diff options
author | Matteo Beccati <mbeccati@php.net> | 2013-08-22 15:34:22 +0200 |
---|---|---|
committer | Matteo Beccati <mbeccati@php.net> | 2013-08-22 15:34:22 +0200 |
commit | 80917e5ca29b8eeed31d87915154dba13bdcc2b5 (patch) | |
tree | 51f12c8da8c254fad29d6a314ba513df810d226f /ext/pgsql | |
parent | 926987bdc7a0013a46ca69ed6da54ca614f0c9ae (diff) | |
parent | 908da14bd1131c5c35d3f206734e9f8f42872b33 (diff) | |
download | php-git-80917e5ca29b8eeed31d87915154dba13bdcc2b5.tar.gz |
Merge branch 'PHP-5.5'
* PHP-5.5:
Fixed other compiler warnings
Diffstat (limited to 'ext/pgsql')
-rw-r--r-- | ext/pgsql/pgsql.c | 5 |
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) |