From da45d3f5b3d7eee360bb27f4952cd53f682585c2 Mon Sep 17 00:00:00 2001 From: selsta Date: Thu, 13 May 2021 03:51:31 +0200 Subject: trezor: deprecated ByteSize -> ByteSizeLong --- src/device_trezor/trezor/transport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/device_trezor/trezor/transport.cpp b/src/device_trezor/trezor/transport.cpp index be95868d0..194176413 100644 --- a/src/device_trezor/trezor/transport.cpp +++ b/src/device_trezor/trezor/transport.cpp @@ -157,7 +157,7 @@ namespace trezor{ #define PROTO_HEADER_SIZE 6 static size_t message_size(const google::protobuf::Message &req){ - return static_cast(req.ByteSize()); + return req.ByteSizeLong(); } static size_t serialize_message_buffer_size(size_t msg_size) { -- cgit v1.2.3