From 88106ef3529ac908d9adf88242722752f11b59a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20M=C3=A4kel=C3=A4?= Date: Thu, 14 Sep 2017 07:52:32 +0300 Subject: 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. --- storage/innobase/include/page0page.ic | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'storage/innobase/include') diff --git a/storage/innobase/include/page0page.ic b/storage/innobase/include/page0page.ic index b464e497de1..db98f2e6558 100644 --- a/storage/innobase/include/page0page.ic +++ b/storage/innobase/include/page0page.ic @@ -731,7 +731,7 @@ page_dir_set_n_heap( ulint n_heap) /*!< in: number of records */ { 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_set_field(page, page_zip, PAGE_N_HEAP, n_heap -- cgit v1.2.1