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

Fix Windows size_t warnings.

This commit is contained in:
Vladislav Vaintroub
2018-01-12 18:19:19 +00:00
parent 8231a0add6
commit 935c33b690
19 changed files with 347 additions and 347 deletions

View File

@@ -78,7 +78,7 @@ static int test_logs(MYSQL *mysql)
stmt= mysql_stmt_init(mysql);
FAIL_IF(!stmt, mysql_error(mysql));
rc= mysql_stmt_prepare(stmt, data, strlen(data));
rc= mysql_stmt_prepare(stmt, data, (unsigned long)strlen(data));
check_stmt_rc(rc, stmt);
memset(my_bind, '\0', sizeof(my_bind));
@@ -129,7 +129,7 @@ static int test_logs(MYSQL *mysql)
stmt= mysql_stmt_init(mysql);
FAIL_IF(!stmt, mysql_error(mysql));
rc= mysql_stmt_prepare(stmt, data, strlen(data));
rc= mysql_stmt_prepare(stmt, data, (unsigned long)strlen(data));
check_stmt_rc(rc, stmt);
rc= mysql_stmt_execute(stmt);
@@ -144,7 +144,7 @@ static int test_logs(MYSQL *mysql)
stmt= mysql_stmt_init(mysql);
FAIL_IF(!stmt, mysql_error(mysql));
rc= mysql_stmt_prepare(stmt, data, strlen(data));
rc= mysql_stmt_prepare(stmt, data, (unsigned long)strlen(data));
check_stmt_rc(rc, stmt);
rc= mysql_stmt_bind_param(stmt, my_bind);