Fix warning.

GitOrigin-RevId: 040b2879b6f120cc948ad6020f91c8ab5995134e
This commit is contained in:
levlam 2020-04-21 13:51:17 +03:00
parent 5ee6a4ea6b
commit c1a5285b47

View File

@ -2148,7 +2148,7 @@ static vector<MessageEntity> find_splittable_entities_v3(Slice text, const vecto
}
vector<MessageEntity> result;
size_t splittable_entity_offset[SPLITTABLE_ENTITY_TYPE_COUNT] = {};
int32 splittable_entity_offset[SPLITTABLE_ENTITY_TYPE_COUNT] = {};
int32 utf16_offset = 0;
for (size_t i = 0; i + 1 < text.size(); i++) {
auto c = static_cast<unsigned char>(text[i]);