Commit 5c087094 authored by inaam's avatar inaam

branches/zip:

Cast to  ib_uint64_t the mask for align down before doing the '~' operation on it.

Reviewed by: Heikki
parent 793b1fe3
...@@ -274,7 +274,7 @@ ut_uint64_align_down( ...@@ -274,7 +274,7 @@ ut_uint64_align_down(
ut_ad(align_no > 0); ut_ad(align_no > 0);
ut_ad(ut_is_2pow(align_no)); ut_ad(ut_is_2pow(align_no));
return(n & (ib_uint64_t) ~(align_no - 1)); return(n & ~((ib_uint64_t) align_no - 1));
} }
/************************************************************ /************************************************************
......
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