summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2011-02-01 16:55:20 +0000
committerAndrey Hristov <andrey@php.net>2011-02-01 16:55:20 +0000
commit44cd358f04249852e724c4288ef6b0584fad0354 (patch)
tree4b9415f312c4a16666e335103a383b345275c68a
parent28cd40919d433b0825580bc804fa5321f3e30dfc (diff)
downloadphp-git-44cd358f04249852e724c4288ef6b0584fad0354.tar.gz
fix warnings. These checks are not needed because
param_no is unsigned, it wasn't in the beginning.
-rw-r--r--ext/mysqlnd/mysqlnd_ps.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/mysqlnd/mysqlnd_ps.c b/ext/mysqlnd/mysqlnd_ps.c
index defd648dd9..5f4580927a 100644
--- a/ext/mysqlnd/mysqlnd_ps.c
+++ b/ext/mysqlnd/mysqlnd_ps.c
@@ -1477,7 +1477,7 @@ MYSQLND_METHOD(mysqlnd_stmt, bind_one_parameter)(MYSQLND_STMT * const s, unsigne
DBG_RETURN(FAIL);
}
- if (param_no < 0 || param_no >= stmt->param_count) {
+ if (param_no >= stmt->param_count) {
SET_STMT_ERROR(stmt, CR_INVALID_PARAMETER_NO, UNKNOWN_SQLSTATE, "Invalid parameter number");
DBG_ERR("invalid param_no");
DBG_RETURN(FAIL);
@@ -1617,7 +1617,7 @@ MYSQLND_METHOD(mysqlnd_stmt, bind_one_result)(MYSQLND_STMT * const s, unsigned i
DBG_RETURN(FAIL);
}
- if (param_no < 0 || param_no >= stmt->field_count) {
+ if (param_no >= stmt->field_count) {
SET_STMT_ERROR(stmt, CR_INVALID_PARAMETER_NO, UNKNOWN_SQLSTATE, "Invalid parameter number");
DBG_ERR("invalid param_no");
DBG_RETURN(FAIL);