summaryrefslogtreecommitdiff
path: root/protocols/EmLanProto/src/mlan.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-12-26 16:39:04 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-12-26 16:39:04 +0300
commit62a186697df33c96dc1a6dac0f4dfc38652fb96f (patch)
tree1437d0906218fae8827aed384026f2b7e656f4ac /protocols/EmLanProto/src/mlan.cpp
parentfcbb395dc7ff3edab972b6d4b27dbbfb3305f5d7 (diff)
BYTE -> uint8_t
Diffstat (limited to 'protocols/EmLanProto/src/mlan.cpp')
-rw-r--r--protocols/EmLanProto/src/mlan.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/EmLanProto/src/mlan.cpp b/protocols/EmLanProto/src/mlan.cpp
index e88cd65b65..4833b0356a 100644
--- a/protocols/EmLanProto/src/mlan.cpp
+++ b/protocols/EmLanProto/src/mlan.cpp
@@ -573,7 +573,7 @@ u_char* CMLan::CreatePacket(TPacket &pak, int *pBufLen)
}
if (pak.strName) {
- *pb++ = 1 + (BYTE)nameLen + 1;
+ *pb++ = 1 + (uint8_t)nameLen + 1;
*pb++ = MCODE_SND_NAME;
memcpy(pb, pak.strName, nameLen);
pb += nameLen;
@@ -587,7 +587,7 @@ u_char* CMLan::CreatePacket(TPacket &pak, int *pBufLen)
if (pak.strMessage) {
*pb++ = 255;
- *((u_short*)pb) = 1 + 4 + (BYTE)mesLen + 1;
+ *((u_short*)pb) = 1 + 4 + (uint8_t)mesLen + 1;
pb += sizeof(u_short);
*pb++ = MCODE_SND_MESSAGE;
*((u_int*)pb) = pak.idMessage;
@@ -614,7 +614,7 @@ u_char* CMLan::CreatePacket(TPacket &pak, int *pBufLen)
if (pak.strAwayMessage) {
*pb++ = 255;
- *((u_short*)pb) = 1 + 4 + (BYTE)awayLen + 1;
+ *((u_short*)pb) = 1 + 4 + (uint8_t)awayLen + 1;
pb += sizeof(u_short);
*pb++ = MCODE_SND_AWAYMSG;
*((u_int*)pb) = pak.idAckAwayMessage;