• Marko Mäkelä's avatar
    Fix GCC 10 -Woverflow · ad4b7056
    Marko Mäkelä authored
    maria_page_crc_check_index(): Do not attempt to convert
    HA_ERR_WRONG_CRC (176) to my_bool (char).
    On platforms where char is signed, the 176 will be converted to -80.
    
    It turns out that the callers only care whether the result is zero.
    Let us return 1 in this case, like we do in all other error cases.
    ad4b7056
ma_pagecrc.c 11.6 KB