Skip to content

Commit 88106ef

Browse files
committed
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.
1 parent f5a833c commit 88106ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

storage/innobase/include/page0page.ic

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ page_dir_set_n_heap(
731731
ulint n_heap) /*!< in: number of records */
732732
{
733733
ut_ad(n_heap < 0x8000);
734-
ut_ad(!page_zip || n_heap
734+
ut_ad(!page_zip || uint16_t(n_heap)
735735
== (page_header_get_field(page, PAGE_N_HEAP) & 0x7fff) + 1);
736736

737737
page_header_set_field(page, page_zip, PAGE_N_HEAP, n_heap

0 commit comments

Comments
 (0)