suppress a CodeWarrior warning about long to int conversion (bug 1616948)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43998 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
9e1c7236e0
commit
18c7af7e80
@ -1928,7 +1928,9 @@ inline wxLongLong wxTimeSpan::GetSeconds() const
|
|||||||
|
|
||||||
inline int wxTimeSpan::GetMinutes() const
|
inline int wxTimeSpan::GetMinutes() const
|
||||||
{
|
{
|
||||||
return (GetSeconds() / 60l).GetLo();
|
// explicit cast to int suppresses a warning with CodeWarrior and possibly
|
||||||
|
// others (changing the return type to long from int is impossible in 2.8)
|
||||||
|
return (int)((GetSeconds() / 60l).GetLo());
|
||||||
}
|
}
|
||||||
|
|
||||||
inline int wxTimeSpan::GetHours() const
|
inline int wxTimeSpan::GetHours() const
|
||||||
|
Loading…
Reference in New Issue
Block a user