X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilccore%2Fsilcpacket.h;h=b2c9dd2790dc0b121ffc10c5f3919e452aa3dd01;hb=382d15d447b7a95390decfa783836ae4fe255b3d;hp=0e15ae438b714ae7a01584a78af24a23942f9d90;hpb=3cf38201f9ffaad2da53757ed48a5546e1d03636;p=runtime.git diff --git a/lib/silccore/silcpacket.h b/lib/silccore/silcpacket.h index 0e15ae43..b2c9dd27 100644 --- a/lib/silccore/silcpacket.h +++ b/lib/silccore/silcpacket.h @@ -335,7 +335,7 @@ typedef bool (*SilcPacketParserCallback)(SilcPacketParserContext #define SILC_PACKET_LENGTH(__packetdata, __ret_truelen, __ret_paddedlen) \ do { \ SILC_GET16_MSB((__ret_truelen), (__packetdata)); \ - (__ret_paddedlen) = (__ret_truelen) + (__packetdata)[4]; \ + (__ret_paddedlen) = (__ret_truelen) + (SilcUInt8)(__packetdata)[4]; \ } while(0) /***/