Skip to content

Commit a73b55a

Browse files
committed
Windows : fix a warning in popular header file
1 parent 434e283 commit a73b55a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

storage/innobase/include/page0zip.ic

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ page_zip_rec_needs_ext(
174174
ulint zip_size) /*!< in: compressed page size in bytes, or 0 */
175175
{
176176
ut_ad(rec_size
177-
> (comp ? REC_N_NEW_EXTRA_BYTES : REC_N_OLD_EXTRA_BYTES));
177+
> (ulint)(comp ? REC_N_NEW_EXTRA_BYTES : REC_N_OLD_EXTRA_BYTES));
178178
ut_ad(ut_is_2pow(zip_size));
179179
ut_ad(comp || !zip_size);
180180

storage/xtradb/include/page0zip.ic

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ page_zip_rec_needs_ext(
174174
ulint zip_size) /*!< in: compressed page size in bytes, or 0 */
175175
{
176176
ut_ad(rec_size
177-
> (comp ? REC_N_NEW_EXTRA_BYTES : REC_N_OLD_EXTRA_BYTES));
177+
> (ulint)(comp ? REC_N_NEW_EXTRA_BYTES : REC_N_OLD_EXTRA_BYTES));
178178
ut_ad(ut_is_2pow(zip_size));
179179
ut_ad(comp || !zip_size);
180180

0 commit comments

Comments
 (0)