From a547eb3cb07033a0ac48bbe3efc022243aac87fe Mon Sep 17 00:00:00 2001 From: Guilherme Maciel Ferreira Date: Tue, 3 Jan 2012 07:58:27 -0200 Subject: [PATCH] PC-Lint warnings fixed: - Info 713: Loss of precision (arg. no. 1) (unsigned char to char). --- src/icmp/icmpv6header.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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 ); -- 1.7.1