mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-15091 : Windows, 64bit: reenable and fix warning C4267 (conversion from 'size_t' to 'type', possible loss of data)
Handle string length as size_t, consistently (almost always:)) Change function prototypes to accept size_t, where in the past ulong or uint were used. change local/member variables to size_t when appropriate. This fix excludes rocksdb, spider,spider, sphinx and connect for now.
This commit is contained in:
@ -1360,7 +1360,7 @@ Master_info_index::get_master_info(const LEX_CSTRING *connection_name,
|
||||
{
|
||||
Master_info *mi;
|
||||
char buff[MAX_CONNECTION_NAME+1], *res;
|
||||
uint buff_length;
|
||||
size_t buff_length;
|
||||
DBUG_ENTER("get_master_info");
|
||||
DBUG_PRINT("enter",
|
||||
("connection_name: '%.*s'", (int) connection_name->length,
|
||||
@ -1914,7 +1914,7 @@ char *Domain_id_filter::as_string(enum_list_type type)
|
||||
return NULL;
|
||||
|
||||
// Store the total number of elements followed by the individual elements.
|
||||
ulong cur_len= sprintf(buf, "%u", ids->elements);
|
||||
size_t cur_len= sprintf(buf, "%u", ids->elements);
|
||||
sz-= cur_len;
|
||||
|
||||
for (uint i= 0; i < ids->elements; i++)
|
||||
|
Reference in New Issue
Block a user