Cleared signed/unsigned warning

pull/2/head
Jeffrey Walton 2015-06-08 04:05:42 -04:00
parent 54bd52d11f
commit d2686acc10
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) inline bool SafeConvert(T1 from, T2 &to)
{ {
to = (T2)from; to = (T2)from;
if (from != to || (from > 0) != (to > 0)) if ((T2)from != to || (from > 0) != (to > 0))
return false; return false;
return true; return true;
} }