Merge pull request #7719

da45d3f trezor: deprecated ByteSize -> ByteSizeLong (selsta)
This commit is contained in:
luigi1111 2021-06-01 22:09:26 -05:00
commit 97436399eb
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010

View File

@ -157,7 +157,7 @@ namespace trezor{
#define PROTO_HEADER_SIZE 6 #define PROTO_HEADER_SIZE 6
static size_t message_size(const google::protobuf::Message &req){ static size_t message_size(const google::protobuf::Message &req){
return static_cast<size_t>(req.ByteSize()); return req.ByteSizeLong();
} }
static size_t serialize_message_buffer_size(size_t msg_size) { static size_t serialize_message_buffer_size(size_t msg_size) {