From ee3227af48bb0db6f29117dca7d8a30bb21bde5e Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Thu, 29 Oct 2020 12:58:45 +0100 Subject: Fix format specifier In this function, `i` is of type `size_t`. --- ext/odbc/php_odbc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/odbc/php_odbc.c b/ext/odbc/php_odbc.c index cc0580fb83..1602e8d6f9 100644 --- a/ext/odbc/php_odbc.c +++ b/ext/odbc/php_odbc.c @@ -2374,7 +2374,7 @@ PHP_FUNCTION(odbc_result_all) PHPWRITE(buf, result->longreadlen); } else if (rc != SQL_SUCCESS) { php_printf(""); - 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) { -- cgit v1.2.1