chore(qrcode): fix warnings

fixes #3016
This commit is contained in:
Gabor Kiss-Vamosi
2022-01-19 14:06:12 +01:00
parent adc218a7b3
commit e9d70803e1

View File

@@ -853,7 +853,7 @@ testable int calcSegmentBitLength(enum qrcodegen_Mode mode, size_t numChars) {
return -1;
}
assert(result >= 0);
if (result > (unsigned int)INT16_MAX)
if ((unsigned int)result > (unsigned int)INT16_MAX)
return -1;
return (int)result;
}
@@ -1032,4 +1032,4 @@ int qrcodegen_version2size(int version)
}
return ((version - 1)*4 + 21);
}
}