1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-08-07 02:42:49 +03:00

Test fixes:

Fixed warning (int/size_t)
Fixed error message
This commit is contained in:
Georg Richter
2022-01-24 14:49:34 +01:00
parent 38122076fd
commit 8aa0ffdcbd
2 changed files with 6 additions and 4 deletions

View File

@@ -881,7 +881,7 @@ static int test_get_options(MYSQL *unused __attribute__((unused)))
const char *attr_val[] = {"bar1", "bar2", "bar3"};
char **key, **val;
for (i=0; i < sizeof(options_int)/sizeof(int); i++)
for (i=0; i < (int)(sizeof(options_int)/sizeof(int)); i++)
{
mysql_options(mysql, options_int[i], &intval[0]);
intval[1]= 0;