mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
fixes for compiler warnings from VC6
client/mysqltest.c: undef popen prior to redefining it to avoid compiler warning cast len argument to replace_dynstr_append_mem to int. This should be ok because the replace_dynstr_append method uses strlen to accomplish the same thing. myisam/mi_create.c: cast myisam_block_size down to uint16 to match the struct element block_length mysys/default.c: add (char*) cast to make compiler happy mysys/my_handler.c: add (my_bool) cast to make compiler happy
This commit is contained in:
@@ -23,7 +23,7 @@ int mi_compare_text(CHARSET_INFO *charset_info, uchar *a, uint a_length,
|
||||
{
|
||||
if (!part_key)
|
||||
return charset_info->coll->strnncollsp(charset_info, a, a_length,
|
||||
b, b_length, !skip_end_space);
|
||||
b, b_length, (my_bool)!skip_end_space);
|
||||
return charset_info->coll->strnncoll(charset_info, a, a_length,
|
||||
b, b_length, part_key);
|
||||
}
|
||||
|
Reference in New Issue
Block a user