Skip to content

Commit

Permalink
Fix warning.
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 4beca3cc956fcee81cc96beffb1630c11c5b1a98
  • Loading branch information
levlam committed Feb 15, 2020
1 parent 7b87d84 commit 1ead70a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion td/telegram/MessageEntity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ static vector<Slice> match_bank_card_numbers(Slice str) {
while (!is_digit(card_number_end[-1])) {
card_number_end--;
}
auto card_number_size = card_number_end - card_number_begin;
auto card_number_size = static_cast<size_t>(card_number_end - card_number_begin);
if (card_number_size > 2 * digit_count - 1) {
continue;
}
Expand Down

0 comments on commit 1ead70a

Please sign in to comment.