Patched quirc to finally rid ourselves of those compiler warnings

This commit is contained in:
Helloman892
2018-05-16 19:20:27 +01:00
parent 89c8a4fae2
commit aa3a00cedc
3 changed files with 5 additions and 3 deletions

View File

@@ -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";