From: Guilherme Maciel Ferreira Date: Tue, 3 Jan 2012 09:58:27 +0000 (-0200) Subject: PC-Lint warnings fixed: X-Git-Tag: v1.3~12 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=a547eb3cb07033a0ac48bbe3efc022243aac87fe;p=pingcheck PC-Lint warnings fixed: - Info 713: Loss of precision (arg. no. 1) (unsigned char to char). --- diff --git a/src/icmp/icmpv6header.cpp b/src/icmp/icmpv6header.cpp index be7a81e..0438093 100644 --- a/src/icmp/icmpv6header.cpp +++ b/src/icmp/icmpv6header.cpp @@ -164,7 +164,7 @@ void Icmpv6Header::set_icmp_message_format( std::istream &is ) (void) is.read( reinterpret_cast(&first_byte), 1 ); // must keep the stream intact, so place the read byte back - (void) is.putback( first_byte ); + (void) is.putback( static_cast(first_byte) ); // now select the message format for the given type Icmpv6Type header_type = static_cast( first_byte );