From 500c7f44ab46ca6303c465586a17fa63b8488cb4 Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Fri, 12 Aug 2011 10:53:32 +0200 Subject: [PATCH 1/1] Fix silly icc remark #2259 Another stupid remark to quiet out: remark #2259: non-pointer conversion from "int" to "UINT16={unsigned short}" may lose significant bits In this case icc always converts to an integer the result of a shift operation if the bit size of the operand is smaller, hence the warning when assignin back to n. No functional change. Signed-off-by: Marco Costalba --- src/book.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/book.cpp b/src/book.cpp index 0cf4ed0d..fcaccf6f 100644 --- a/src/book.cpp +++ b/src/book.cpp @@ -511,7 +511,7 @@ Book& Book::operator>>(T& n) { n = 0; for (size_t i = 0; i < sizeof(T); i++) - n = (n << 8) + (T)bookFile.get(); + n = T((n << 8) + bookFile.get()); return *this; } -- 2.39.2