mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +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:
@ -171,7 +171,7 @@ err:
|
||||
void make_valid_column_names(THD *thd, List<Item> &item_list)
|
||||
{
|
||||
Item *item;
|
||||
uint name_len;
|
||||
size_t name_len;
|
||||
List_iterator_fast<Item> it(item_list);
|
||||
char buff[NAME_LEN];
|
||||
DBUG_ENTER("make_valid_column_names");
|
||||
@ -1348,7 +1348,7 @@ bool mysql_make_view(THD *thd, TABLE_SHARE *share, TABLE_LIST *table,
|
||||
bool dbchanged;
|
||||
Parser_state parser_state;
|
||||
if (parser_state.init(thd, table->select_stmt.str,
|
||||
table->select_stmt.length))
|
||||
(uint)table->select_stmt.length))
|
||||
goto err;
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user