Commit 88106ef3 authored by Marko Mäkelä's avatar Marko Mäkelä

Fix a warning for a debug assertion

The type uint16_t is apparently promoted to int in a comparison,
causing a sign mismatch when comparing to ulint.
Convert both operands to uint16_t.
parent f5a833c3
...@@ -731,7 +731,7 @@ page_dir_set_n_heap( ...@@ -731,7 +731,7 @@ page_dir_set_n_heap(
ulint n_heap) /*!< in: number of records */ ulint n_heap) /*!< in: number of records */
{ {
ut_ad(n_heap < 0x8000); ut_ad(n_heap < 0x8000);
ut_ad(!page_zip || n_heap ut_ad(!page_zip || uint16_t(n_heap)
== (page_header_get_field(page, PAGE_N_HEAP) & 0x7fff) + 1); == (page_header_get_field(page, PAGE_N_HEAP) & 0x7fff) + 1);
page_header_set_field(page, page_zip, PAGE_N_HEAP, n_heap page_header_set_field(page, page_zip, PAGE_N_HEAP, n_heap
......
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