diff --git a/td/telegram/SecureManager.cpp b/td/telegram/SecureManager.cpp index 36a27d870..5ee34e4c8 100644 --- a/td/telegram/SecureManager.cpp +++ b/td/telegram/SecureManager.cpp @@ -998,7 +998,7 @@ void SecureManager::get_passport_authorization_form(string password, UserId bot_ refcnt_++; auto authorization_form_id = ++authorization_form_id_; authorization_forms_[authorization_form_id] = - AuthorizationForm{bot_user_id, scope, public_key, payload, false, false}; + AuthorizationForm{bot_user_id, scope, public_key, payload, false, false, false}; auto new_promise = PromiseCreator::lambda([actor_id = actor_id(this), authorization_form_id, promise = std::move(promise)]( Result r_authorization_form) mutable { diff --git a/tdutils/test/misc.cpp b/tdutils/test/misc.cpp index 0280d819c..6415e277e 100644 --- a/tdutils/test/misc.cpp +++ b/tdutils/test/misc.cpp @@ -396,7 +396,7 @@ TEST(Misc, translit) { static void test_unicode(uint32 (*func)(uint32)) { for (uint32 i = 0; i <= 0x110000; i++) { auto res = func(i); - CHECK(0 <= res && res <= 0x10ffff); + CHECK(res <= 0x10ffff); } }