Avoid cast in wx_truncate_cast for intel compiler

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35895 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Michael Wetherell 2005-10-12 13:05:17 +00:00
parent 6495ea3f1d
commit e5d92e2bef

View File

@ -298,10 +298,12 @@ typedef int wxWindowID;
inline T wx_truncate_cast_impl(X x)
{
#pragma warning(push)
/* explicit conversion of a 64-bit integral type to a smaller integral type */
#pragma warning(disable: 1683)
/* implicit conversion of a 64-bit integral type to a smaller integral type */
#pragma warning(disable: 1682)
/* conversion from "X" to "T" may lose significant bits */
#pragma warning(disable: 810)
return (T)x;
return x;
#pragma warning(pop)
}