Workaround GCC 10 warning.
GitOrigin-RevId: 8d9eda2e4c71638188838032d8e747f558fba5e4
This commit is contained in:
parent
f4b0fe416c
commit
16d207cac4
@ -26,6 +26,7 @@
|
|||||||
#include "td/tl/tl_object_parse.h"
|
#include "td/tl/tl_object_parse.h"
|
||||||
#include "td/tl/tl_object_store.h"
|
#include "td/tl/tl_object_store.h"
|
||||||
|
|
||||||
|
#include "td/utils/as.h"
|
||||||
#include "td/utils/base64.h"
|
#include "td/utils/base64.h"
|
||||||
#include "td/utils/buffer.h"
|
#include "td/utils/buffer.h"
|
||||||
#include "td/utils/common.h"
|
#include "td/utils/common.h"
|
||||||
@ -893,12 +894,9 @@ class Master : public Actor {
|
|||||||
}
|
}
|
||||||
void process_net_query_send_encrypted(BufferSlice data, NetQueryPtr net_query,
|
void process_net_query_send_encrypted(BufferSlice data, NetQueryPtr net_query,
|
||||||
ActorShared<NetQueryCallback> callback) {
|
ActorShared<NetQueryCallback> callback) {
|
||||||
my_api::messages_sentEncryptedMessage sent_message;
|
BufferSlice answer(8);
|
||||||
sent_message.date_ = 0;
|
answer.as_slice().fill(0);
|
||||||
auto storer = TLObjectStorer<my_api::messages_sentEncryptedMessage>(sent_message);
|
as<int32>(answer.as_slice().begin()) = my_api::messages_sentEncryptedMessage::ID;
|
||||||
BufferSlice answer(storer.size());
|
|
||||||
auto real_size = storer.store(answer.as_slice().ubegin());
|
|
||||||
CHECK(real_size == answer.size());
|
|
||||||
net_query->set_ok(std::move(answer));
|
net_query->set_ok(std::move(answer));
|
||||||
send_closure(std::move(callback), &NetQueryCallback::on_result, std::move(net_query));
|
send_closure(std::move(callback), &NetQueryCallback::on_result, std::move(net_query));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user