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:
@ -1863,7 +1863,7 @@ static int add_keyword_path(String *str, const char *keyword,
|
||||
#ifdef __WIN__
|
||||
/* Convert \ to / to be able to create table on unix */
|
||||
char *pos, *end;
|
||||
uint length= strlen(temp_path);
|
||||
size_t length= strlen(temp_path);
|
||||
for (pos= temp_path, end= pos+length ; pos < end ; pos++)
|
||||
{
|
||||
if (*pos == '\\')
|
||||
|
Reference in New Issue
Block a user