From 17fea9df2a9f3179d02c5ae5a1296710c2bf4247 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sat, 13 Jun 2015 15:40:06 -0400 Subject: [PATCH] Backed out commit d2686acc10f915fc0b963d7e7b75bf1be8be56d3. Its not clear it was safe to clear the warning this way --- misc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc.h b/misc.h index f29aa837..2b326dd6 100644 --- a/misc.h +++ b/misc.h @@ -299,7 +299,7 @@ template inline bool SafeConvert(T1 from, T2 &to) { to = (T2)from; - if ((T2)from != to || (from > 0) != (to > 0)) + if (from != to || (from > 0) != (to > 0)) return false; return true; }