Backed out commit d2686acc10. Its not clear it was safe to clear the warning this way

pull/2/head
Jeffrey Walton 2015-06-13 15:40:06 -04:00
parent 789aacd4d3
commit 17fea9df2a
1 changed files with 1 additions and 1 deletions

2
misc.h
View File

@ -299,7 +299,7 @@ template <class T1, class T2>
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;
}