Commit 9aa1ab5a authored by Monty's avatar Monty

Fixed compiler warning

parent ca0c96fc
...@@ -674,7 +674,7 @@ int mdl_iterate(int (*callback)(MDL_ticket *ticket, void *arg), void *arg) ...@@ -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, my_hash_value_type mdl_hash_function(CHARSET_INFO *cs,
const uchar *key, size_t length) 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(); return mdl_key->hash_value();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment