]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/datetime.cpp
fix errant __BORLAND__ see http://article.gmane.org/gmane.comp.lib.wxwidgets.devel...
[wxWidgets.git] / src / common / datetime.cpp
index 43b767754eb6984b995446bd28dcb1eaa1fcfe13..315a4e1dc525b437714b3853f0b7a0ca92a30e3a 100644 (file)
@@ -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