From c1a5285b4789bff2f741f57a713147673f4023ff Mon Sep 17 00:00:00 2001 From: levlam Date: Tue, 21 Apr 2020 13:51:17 +0300 Subject: [PATCH] Fix warning. GitOrigin-RevId: 040b2879b6f120cc948ad6020f91c8ab5995134e --- td/telegram/MessageEntity.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/td/telegram/MessageEntity.cpp b/td/telegram/MessageEntity.cpp index 79895c4bf..ad2cc5004 100644 --- a/td/telegram/MessageEntity.cpp +++ b/td/telegram/MessageEntity.cpp @@ -2148,7 +2148,7 @@ static vector find_splittable_entities_v3(Slice text, const vecto } vector 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(text[i]);