From: Andrey Hristov Date: Tue, 1 Feb 2011 16:55:20 +0000 (+0000) Subject: fix warnings. These checks are not needed because X-Git-Tag: php-5.3.6RC1~46 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6157793026660e3d721a0ea6e4003e29d102f876;p=php fix warnings. These checks are not needed because param_no is unsigned, it wasn't in the beginning. --- 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);