Skip to content

Commit

Permalink
compilation failure on Win64
Browse files Browse the repository at this point in the history
conversion from 'size_t' to 'int', possible loss of data
  • Loading branch information
vuvova committed Aug 9, 2018
1 parent 7ec7250 commit 31eb49f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions libmariadb/ma_string.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion plugins/auth/sha256_pw.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 31eb49f

Please sign in to comment.