diff options
author | Matteo Beccati <mbeccati@php.net> | 2013-08-21 11:00:31 +0200 |
---|---|---|
committer | Matteo Beccati <mbeccati@php.net> | 2013-08-21 11:22:32 +0200 |
commit | 5c06e5c2e020c49c3a99c88477014846e6d82b97 (patch) | |
tree | 67fa760d4b8325aaa924c47dfd97072b2e1181bc | |
parent | e9b12bedc331631cbcc8605972325ca41ec50f01 (diff) | |
download | php-git-5c06e5c2e020c49c3a99c88477014846e6d82b97.tar.gz |
Fixed compiler warning
I moved the constant to the enum in order to avoid this:
ext/pgsql/pgsql.c:3491: warning: comparison is always false due to limited range of data type
Works in gcc 4.6, but I'm not sure about other compilers.
-rw-r--r-- | ext/pdo/php_pdo_driver.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/pdo/php_pdo_driver.h b/ext/pdo/php_pdo_driver.h index c757dbf1e5..ede2d6fb76 100644 --- a/ext/pdo/php_pdo_driver.h +++ b/ext/pdo/php_pdo_driver.h @@ -72,11 +72,11 @@ enum pdo_param_type { /* get_col ptr should point to a zval* and the driver is responsible for adding correct type information to get_column_meta() */ - PDO_PARAM_ZVAL -}; + PDO_PARAM_ZVAL, -/* magic flag to denote a parameter as being input/output */ -#define PDO_PARAM_INPUT_OUTPUT 0x80000000 + /* magic flag to denote a parameter as being input/output */ + PDO_PARAM_INPUT_OUTPUT = 0x80000000 +}; #define PDO_PARAM_FLAGS 0xFFFF0000 |