Patched quirc to finally rid ourselves of those compiler warnings
This commit is contained in:
@@ -84,7 +84,8 @@ static const char *const error_table[] = {
|
||||
|
||||
const char *quirc_strerror(quirc_decode_error_t err)
|
||||
{
|
||||
if (err >= 0 && err < sizeof(error_table) / sizeof(error_table[0]))
|
||||
// note from Anemone3DS dev - L88 used to compare err >= 0, but err is always positive
|
||||
if (err < sizeof(error_table) / sizeof(error_table[0]))
|
||||
return error_table[err];
|
||||
|
||||
return "Unknown error";
|
||||
|
||||
Reference in New Issue
Block a user