summaryrefslogtreecommitdiff
path: root/libicui18n/libicui18n/dtitvfmt.cpp.patch
diff options
context:
space:
mode:
Diffstat (limited to 'libicui18n/libicui18n/dtitvfmt.cpp.patch')
-rw-r--r--libicui18n/libicui18n/dtitvfmt.cpp.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/libicui18n/libicui18n/dtitvfmt.cpp.patch b/libicui18n/libicui18n/dtitvfmt.cpp.patch
new file mode 100644
index 0000000..f6a0f5c
--- /dev/null
+++ b/libicui18n/libicui18n/dtitvfmt.cpp.patch
@@ -0,0 +1,11 @@
+--- libicui18n/i18n/dtitvfmt.cpp 2019-12-23 14:38:40.214889289 +0300
++++ libicui18n/dtitvfmt.cpp 2020-07-21 14:35:34.435172232 +0300
+@@ -232,7 +232,7 @@ DateIntervalFormat::operator==(const For
+ {
+ Mutex lock(&gFormatterMutex);
+ if (fDateFormat != fmt->fDateFormat && (fDateFormat == NULL || fmt->fDateFormat == NULL)) {return FALSE;}
+- if (fDateFormat && fmt->fDateFormat && (*fDateFormat != *fmt->fDateFormat)) {return FALSE;}
++ if (fDateFormat && fmt->fDateFormat && !(*fDateFormat == *fmt->fDateFormat)) {return FALSE;}
+ }
+ // note: fFromCalendar and fToCalendar hold no persistent state, and therefore do not participate in operator ==.
+ // fDateFormat has the master calendar for the DateIntervalFormat.