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:
@ -330,7 +330,7 @@ typedef struct st_user_stats
|
||||
typedef struct st_table_stats
|
||||
{
|
||||
char table[NAME_LEN * 2 + 2]; // [db] + '\0' + [table] + '\0'
|
||||
uint table_name_length;
|
||||
size_t table_name_length;
|
||||
ulonglong rows_read, rows_changed;
|
||||
ulonglong rows_changed_x_indexes;
|
||||
/* Stores enum db_type, but forward declarations cannot be done */
|
||||
@ -341,7 +341,7 @@ typedef struct st_index_stats
|
||||
{
|
||||
// [db] + '\0' + [table] + '\0' + [index] + '\0'
|
||||
char index[NAME_LEN * 3 + 3];
|
||||
uint index_name_length; /* Length of 'index' */
|
||||
size_t index_name_length; /* Length of 'index' */
|
||||
ulonglong rows_read;
|
||||
} INDEX_STATS;
|
||||
|
||||
|
Reference in New Issue
Block a user