X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/56560c387fc77f80f7a6846f01c1f8402fcd50fd..f321ab7fb40525098cea6594ffbf2daf0186b1a3:/include/wx/datetime.h diff --git a/include/wx/datetime.h b/include/wx/datetime.h index 7c75150dba..c65e1f64d8 100644 --- a/include/wx/datetime.h +++ b/include/wx/datetime.h @@ -1928,7 +1928,9 @@ inline wxLongLong wxTimeSpan::GetSeconds() 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