diff options
author | Monty <monty@mariadb.org> | 2018-03-23 14:52:14 +0200 |
---|---|---|
committer | Monty <monty@mariadb.org> | 2018-03-26 17:53:17 +0300 |
commit | 9aa1ab5a597341d0cac25a7dc0771ff5e68c5c1c (patch) | |
tree | e0a3624989697e3b357531534dcb917653e34617 /sql/mdl.cc | |
parent | ca0c96fc8925d36ea0c5121520bf7d8f12ad90a5 (diff) | |
download | mariadb-git-9aa1ab5a597341d0cac25a7dc0771ff5e68c5c1c.tar.gz |
Fixed compiler warning
Diffstat (limited to 'sql/mdl.cc')
-rw-r--r-- | sql/mdl.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/mdl.cc b/sql/mdl.cc index 56515d42c58..86fc5fa39fc 100644 --- a/sql/mdl.cc +++ b/sql/mdl.cc @@ -674,7 +674,7 @@ int mdl_iterate(int (*callback)(MDL_ticket *ticket, void *arg), void *arg) my_hash_value_type mdl_hash_function(CHARSET_INFO *cs, const uchar *key, size_t length) { - MDL_key *mdl_key= (MDL_key*) (key - offsetof(MDL_key, m_ptr)); + MDL_key *mdl_key= (MDL_key*) (key - my_offsetof(MDL_key, m_ptr)); return mdl_key->hash_value(); } |