Merge pull request #1744 from mywalkb/fix_clang

Fix undefined symbol when build with clang
This commit is contained in:
Iceman 2022-08-02 22:32:59 +02:00 committed by GitHub
commit fe45cdd605
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -331,7 +331,7 @@ static bool TexcomTK15Decode(uint32_t *implengths, uint32_t implengthslen, char
return ((strlen(cbitstring) == 64) && (strncmp(cbitstring, "1111111111111111", 16) == 0));
}
inline int TexcomTK17Get2Bits(uint32_t len1, uint32_t len2) {
static inline int TexcomTK17Get2Bits(uint32_t len1, uint32_t len2) {
uint32_t xlen = (len2 * 100) / (len1 + len2);
if (xlen < 10 || xlen > 90)
return TK17WrongBit;