Commit 7c35ad16 authored by Marko Mäkelä's avatar Marko Mäkelä

MDEV-28389 fixup: Fix pre-GCC 10 -Wconversion

Before version 10, GCC would think that a right shift of an
unsigned char returns int. Let us explicitly cast that back,
to silence a bogus -Wconversion warning.
parent 045771c0
...@@ -1247,7 +1247,10 @@ void buf_page_print(const byte *read_buf, const page_size_t &page_size) ...@@ -1247,7 +1247,10 @@ void buf_page_print(const byte *read_buf, const page_size_t &page_size)
byte row[64]; byte row[64];
for (byte *r= row; r != &row[64]; r+= 2, read_buf++) for (byte *r= row; r != &row[64]; r+= 2, read_buf++)
r[0]= hex_to_ascii(*read_buf >> 4), r[1]= hex_to_ascii(*read_buf & 15); {
r[0]= hex_to_ascii(byte(*read_buf >> 4));
r[1]= hex_to_ascii(*read_buf & 15);
}
sql_print_information("InnoDB: %.*s", 64, row); sql_print_information("InnoDB: %.*s", 64, row);
} }
......
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