diff options
Diffstat (limited to 'unittest')
-rw-r--r-- | unittest/mysys/base64-t.c | 4 | ||||
-rw-r--r-- | unittest/sql/mf_iocache-t.cc | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/unittest/mysys/base64-t.c b/unittest/mysys/base64-t.c index 58d0014dee1..ee0324f7dff 100644 --- a/unittest/mysys/base64-t.c +++ b/unittest/mysys/base64-t.c @@ -48,7 +48,7 @@ main(int argc __attribute__((unused)),char *argv[]) } /* Encode */ - needed_length= my_base64_needed_encoded_length(src_len); + needed_length= my_base64_needed_encoded_length((int)src_len); str= (char *) malloc(needed_length); for (k= 0; k < needed_length; k++) str[k]= 0xff; /* Fill memory to check correct NUL termination */ @@ -58,7 +58,7 @@ main(int argc __attribute__((unused)),char *argv[]) "my_base64_needed_encoded_length: size %d", i); /* Decode */ - dst= (char *) malloc(my_base64_needed_decoded_length(strlen(str))); + dst= (char *) malloc(my_base64_needed_decoded_length((int)strlen(str))); dst_len= my_base64_decode(str, strlen(str), dst, NULL, 0); ok(dst_len == src_len, "Comparing lengths"); diff --git a/unittest/sql/mf_iocache-t.cc b/unittest/sql/mf_iocache-t.cc index 2f36127af6d..f27e49d7ea3 100644 --- a/unittest/sql/mf_iocache-t.cc +++ b/unittest/sql/mf_iocache-t.cc @@ -138,7 +138,7 @@ void temp_io_cache() res= reinit_io_cache(&info, READ_CACHE, 0, 0, 0); ok(res == 0, "reinit READ_CACHE" INFO_TAIL); - res= my_pread(info.file, buf, 50, 50, MYF(MY_NABP)); + res= (int)my_pread(info.file, buf, 50, 50, MYF(MY_NABP)); ok(res == 0 && data_bad(buf, 50) == encrypt_tmp_files, "file must be %sreadable", encrypt_tmp_files ?"un":""); @@ -176,7 +176,7 @@ void mdev9044() res= reinit_io_cache(&info, READ_CACHE, 0, 0, 0); ok(res == 0, "reinit READ_CACHE" INFO_TAIL); - res= my_b_fill(&info); + res= (int)my_b_fill(&info); ok(res == 0, "fill" INFO_TAIL); res= reinit_io_cache(&info, READ_CACHE, 0, 0, 0); |