Skip to content

Commit

Permalink
Fix format specifier
Browse files Browse the repository at this point in the history
In this function, `i` is of type `size_t`.
  • Loading branch information
cmb69 committed Oct 29, 2020
1 parent c21e901 commit ee3227a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/odbc/php_odbc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2374,7 +2374,7 @@ PHP_FUNCTION(odbc_result_all)
PHPWRITE(buf, result->longreadlen);
} else if (rc != SQL_SUCCESS) {
php_printf("</td></tr></table>");
php_error_docref(NULL, E_WARNING, "Cannot get data of column #%d (retcode %u)", i + 1, rc);
php_error_docref(NULL, E_WARNING, "Cannot get data of column #%zu (retcode %u)", i + 1, rc);
efree(buf);
RETURN_FALSE;
} else if (result->values[i].vallen == SQL_NULL_DATA) {
Expand Down

0 comments on commit ee3227a

Please sign in to comment.