PC-Lint warnings fixed:
authorGuilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
Tue, 3 Jan 2012 09:58:27 +0000 (07:58 -0200)
committerGuilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
Tue, 3 Jan 2012 09:58:27 +0000 (07:58 -0200)
- Info 713: Loss of precision (arg. no. 1) (unsigned char to char).

src/icmp/icmpv6header.cpp

index be7a81e..0438093 100644 (file)
@@ -164,7 +164,7 @@ void Icmpv6Header::set_icmp_message_format( std::istream &is )
     (void) is.read( reinterpret_cast<char *>(&first_byte), 1 );
 
     // must keep the stream intact, so place the read byte back
-    (void) is.putback( first_byte );
+    (void) is.putback( static_cast<std::istream::char_type>(first_byte) );
 
     // now select the message format for the given type
     Icmpv6Type header_type = static_cast<Icmpv6Type>( first_byte );