summaryrefslogtreecommitdiff
path: root/include/hash.h
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@mariadb.com>2018-05-09 23:04:18 +0100
committerVladislav Vaintroub <wlad@mariadb.com>2018-05-09 23:04:18 +0100
commit8ba0eea65cd7cc02314a9e1ab954808d16461888 (patch)
treebb7a67b3930980de7ef8284cdabdac1d63628e00 /include/hash.h
parentdf420cbbfdbd15a34e19be2d49911d9505bf7f1e (diff)
downloadmariadb-git-8ba0eea65cd7cc02314a9e1ab954808d16461888.tar.gz
Fix warning VS2017 15.7 update.
This previously unreported warning comes from casting size_t to ulong in sql_hset.h in Hash_Set::at(). Change my_hash_element to accept size_t index parameter.
Diffstat (limited to 'include/hash.h')
-rw-r--r--include/hash.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hash.h b/include/hash.h
index 892922d81a3..70ebb4c0492 100644
--- a/include/hash.h
+++ b/include/hash.h
@@ -73,7 +73,7 @@ my_bool my_hash_init2(HASH *hash, uint growth_size, CHARSET_INFO *charset,
uint flags);
void my_hash_free(HASH *tree);
void my_hash_reset(HASH *hash);
-uchar *my_hash_element(HASH *hash, ulong idx);
+uchar *my_hash_element(HASH *hash, size_t idx);
uchar *my_hash_search(const HASH *info, const uchar *key, size_t length);
uchar *my_hash_search_using_hash_value(const HASH *info,
my_hash_value_type hash_value,