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:
@ -587,17 +587,17 @@ static void lf_alloc_destructor(uchar *arg)
|
||||
}
|
||||
|
||||
|
||||
static void tdc_hash_initializer(LF_HASH *hash __attribute__((unused)),
|
||||
static void tdc_hash_initializer(LF_HASH *,
|
||||
TDC_element *element, LEX_STRING *key)
|
||||
{
|
||||
memcpy(element->m_key, key->str, key->length);
|
||||
element->m_key_length= key->length;
|
||||
element->m_key_length= (uint)key->length;
|
||||
tdc_assert_clean_share(element);
|
||||
}
|
||||
|
||||
|
||||
static uchar *tdc_hash_key(const TDC_element *element, size_t *length,
|
||||
my_bool not_used __attribute__((unused)))
|
||||
my_bool)
|
||||
{
|
||||
*length= element->m_key_length;
|
||||
return (uchar*) element->m_key;
|
||||
|
Reference in New Issue
Block a user