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

compilation failure on Win64

conversion from 'size_t' to 'int', possible loss of data
This commit is contained in:
Sergei Golubchik
2018-08-08 22:05:46 +02:00
parent 7ec7250416
commit 31eb49f1f4
2 changed files with 3 additions and 3 deletions

View File

@@ -96,8 +96,8 @@ my_bool ma_dynstr_append_quoted(DYNAMIC_STRING *str,
const char *append, size_t len,
char quote)
{
uint additional= str->alloc_increment;
uint lim= additional;
size_t additional= str->alloc_increment;
size_t lim= additional;
uint i;
if (ma_dynstr_realloc(str, len + additional + 2))

View File

@@ -142,7 +142,7 @@ char *load_pub_key_file(const char *filename, int *pub_key_size)
if (bytes_read < (size_t)fsize)
goto end;
*pub_key_size= bytes_read;
*pub_key_size= (int)bytes_read;
error= 0;