Skip to content

Commit 5c06e5c

Browse files
committed
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.
1 parent e9b12be commit 5c06e5c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ext/pdo/php_pdo_driver.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ enum pdo_param_type {
7272
/* get_col ptr should point to a zval*
7373
and the driver is responsible for adding correct type information to get_column_meta()
7474
*/
75-
PDO_PARAM_ZVAL
76-
};
75+
PDO_PARAM_ZVAL,
7776

78-
/* magic flag to denote a parameter as being input/output */
79-
#define PDO_PARAM_INPUT_OUTPUT 0x80000000
77+
/* magic flag to denote a parameter as being input/output */
78+
PDO_PARAM_INPUT_OUTPUT = 0x80000000
79+
};
8080

8181
#define PDO_PARAM_FLAGS 0xFFFF0000
8282

0 commit comments

Comments
 (0)