mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-09 07:22:21 +08:00
removed unnecessary call in screen class, added logging calls
in clipboard class, and added another cast in protocol util to avoid warning on win32.
This commit is contained in:
@@ -84,8 +84,9 @@ void CProtocolUtil::readf(IInputStream* stream,
|
||||
case 2:
|
||||
// 2 byte integer
|
||||
*reinterpret_cast<UInt16*>(v) =
|
||||
static_cast<UInt16>(
|
||||
(static_cast<UInt16>(buffer[0]) << 8) |
|
||||
static_cast<UInt16>(buffer[1]);
|
||||
static_cast<UInt16>(buffer[1]));
|
||||
log((CLOG_DEBUG2 "readf: read %d byte integer: %d (0x%x)", len, *reinterpret_cast<UInt16*>(v), *reinterpret_cast<UInt16*>(v)));
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user