X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bb7afa499a53b8df92f1083b48702810669b61ea..ef1160a7dcc9065f5321a84c142cabcef9eb9df0:/src/common/datetime.cpp diff --git a/src/common/datetime.cpp b/src/common/datetime.cpp index 43b767754e..315a4e1dc5 100644 --- a/src/common/datetime.cpp +++ b/src/common/datetime.cpp @@ -2472,7 +2472,7 @@ wxString wxDateTime::Format(const wxChar *format, const TimeZone& tz) const // replace all occurrences of year with it bool wasReplaced = fmt2.Replace(strYear, replacement) > 0; // evaluation order ensures we always attempt the replacement. - wasReplaced = (fmt2.Replace(strYear2, replacement2) > 0) | wasReplaced ; + wasReplaced = (fmt2.Replace(strYear2, replacement2) > 0) || wasReplaced; // use strftime() to format the same date but in supported // year