Better alignas and swift example formatting fixes.
GitOrigin-RevId: f13cb9754b0f91975710662d30c87563de4d7641
This commit is contained in:
parent
35179d5b15
commit
72df55fb2d
@ -33,7 +33,6 @@ class TdClient {
|
||||
}
|
||||
semaphore.wait()
|
||||
return result
|
||||
|
||||
}
|
||||
|
||||
init() {
|
||||
@ -169,5 +168,3 @@ client.run {
|
||||
while true {
|
||||
sleep(1)
|
||||
}
|
||||
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
|
||||
namespace td {
|
||||
|
||||
alignas(128) const unsigned char TlParser::empty_data[sizeof(UInt256)] = {}; // static zero-initialized
|
||||
alignas(4) const unsigned char TlParser::empty_data[sizeof(UInt256)] = {}; // static zero-initialized
|
||||
|
||||
void TlParser::set_error(const string &error_message) {
|
||||
if (error.empty()) {
|
||||
|
@ -33,7 +33,7 @@ class TlParser {
|
||||
static constexpr size_t SMALL_DATA_ARRAY_SIZE = 6;
|
||||
std::array<int32, SMALL_DATA_ARRAY_SIZE> small_data_array;
|
||||
|
||||
static const unsigned char empty_data[sizeof(UInt256)];
|
||||
alignas(4) static const unsigned char empty_data[sizeof(UInt256)];
|
||||
|
||||
public:
|
||||
explicit TlParser(Slice slice) {
|
||||
|
Loading…
Reference in New Issue
Block a user