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:
crs
2002-05-22 17:08:37 +00:00
parent 9e161163b0
commit 8df02380e5
4 changed files with 8 additions and 102 deletions

View File

@@ -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;