Fix warnings.
GitOrigin-RevId: 1333339879d7990836bb6c14cc9dce4a3e9ad085
This commit is contained in:
parent
3d05d44be8
commit
07bfd77908
@ -998,7 +998,7 @@ void SecureManager::get_passport_authorization_form(string password, UserId bot_
|
|||||||
refcnt_++;
|
refcnt_++;
|
||||||
auto authorization_form_id = ++authorization_form_id_;
|
auto authorization_form_id = ++authorization_form_id_;
|
||||||
authorization_forms_[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 =
|
auto new_promise =
|
||||||
PromiseCreator::lambda([actor_id = actor_id(this), authorization_form_id, promise = std::move(promise)](
|
PromiseCreator::lambda([actor_id = actor_id(this), authorization_form_id, promise = std::move(promise)](
|
||||||
Result<TdApiAuthorizationForm> r_authorization_form) mutable {
|
Result<TdApiAuthorizationForm> r_authorization_form) mutable {
|
||||||
|
@ -396,7 +396,7 @@ TEST(Misc, translit) {
|
|||||||
static void test_unicode(uint32 (*func)(uint32)) {
|
static void test_unicode(uint32 (*func)(uint32)) {
|
||||||
for (uint32 i = 0; i <= 0x110000; i++) {
|
for (uint32 i = 0; i <= 0x110000; i++) {
|
||||||
auto res = func(i);
|
auto res = func(i);
|
||||||
CHECK(0 <= res && res <= 0x10ffff);
|
CHECK(res <= 0x10ffff);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user