Cleared signed/unsigned warning
parent
54bd52d11f
commit
d2686acc10
2
misc.h
2
misc.h
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue