From 9d7b2c5f61f2015d085afde271f791317a131a25 Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Tue, 7 Mar 2023 10:08:03 -0400 Subject: TProtocol: Use `const short` variable for return value in `send(u8 *, size)` This is needed to match now. --- src/pso/TProtocol.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pso/TProtocol.cpp b/src/pso/TProtocol.cpp index 0970d39..0e243d0 100644 --- a/src/pso/TProtocol.cpp +++ b/src/pso/TProtocol.cpp @@ -71,7 +71,8 @@ void TProtocol::parse_packet() { } short TProtocol::send(u8 *data, size_t size) { - return TTcpSocket::send(data, size); + const short ret = TTcpSocket::send(data, size); + return ret; } void TProtocol::run_task() { -- cgit v1.2.3-13-gbd6f