diff --git a/src/common/any.cpp b/src/common/any.cpp index 69bb19c143..56e315eb95 100644 --- a/src/common/any.cpp +++ b/src/common/any.cpp @@ -175,7 +175,7 @@ bool wxConvertAnyToVariant(const wxAny& any, wxVariant* variant) // NB: Do not use LONG_MAX here. Explicitly using 32-bit // integer constraint yields more consistent behavior across // builds. - if ( ll > wxINT32_MAX or ll < wxINT32_MIN ) + if ( ll > wxINT32_MAX || ll < wxINT32_MIN ) *variant = wxLongLong(ll); else *variant = (long) wxLongLong(ll).GetLo();