Skip to content

Commit ee3227a

Browse files
committed
Fix format specifier
In this function, `i` is of type `size_t`.
1 parent c21e901 commit ee3227a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/odbc/php_odbc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2374,7 +2374,7 @@ PHP_FUNCTION(odbc_result_all)
23742374
PHPWRITE(buf, result->longreadlen);
23752375
} else if (rc != SQL_SUCCESS) {
23762376
php_printf("</td></tr></table>");
2377-
php_error_docref(NULL, E_WARNING, "Cannot get data of column #%d (retcode %u)", i + 1, rc);
2377+
php_error_docref(NULL, E_WARNING, "Cannot get data of column #%zu (retcode %u)", i + 1, rc);
23782378
efree(buf);
23792379
RETURN_FALSE;
23802380
} else if (result->values[i].vallen == SQL_NULL_DATA) {

0 commit comments

Comments
 (0)