Skip to content

Commit

Permalink
chore(qrcode): fix warnings
Browse files Browse the repository at this point in the history
fixes #3016
  • Loading branch information
kisvegabor committed Jan 19, 2022
1 parent adc218a commit e9d7080
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/extra/libs/qrcode/qrcodegen.c
Original file line number Diff line number Diff line change
@@ -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);
}
}

0 comments on commit e9d7080

Please sign in to comment.