Commit c5b48ab3 authored by Konstantin Osipov's avatar Konstantin Osipov

Fix a Windows compilation warning (req_count is later used

in a pointer arithmetics expression).
parent afd15c43
...@@ -1543,7 +1543,7 @@ bool MDL_context::acquire_locks(MDL_request_list *mdl_requests) ...@@ -1543,7 +1543,7 @@ bool MDL_context::acquire_locks(MDL_request_list *mdl_requests)
{ {
MDL_request_list::Iterator it(*mdl_requests); MDL_request_list::Iterator it(*mdl_requests);
MDL_request **sort_buf, **p_req; MDL_request **sort_buf, **p_req;
uint req_count= mdl_requests->elements(); ssize_t req_count= static_cast<ssize_t>(mdl_requests->elements());
if (req_count == 0) if (req_count == 0)
return FALSE; return FALSE;
......
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