diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2017-11-10 18:13:52 -0500 |
---|---|---|
committer | Kohei Yoshida <libreoffice@kohei.us> | 2017-11-11 02:42:19 +0100 |
commit | 0b4d0c87fe201b7cc7f49b2dc14c134c95558a30 (patch) | |
tree | a6dfad219b097d8a17d80cb8170ed5e74af897e7 /external | |
parent | 4b63977c98245efcedd905f37a85f988c3bb44e2 (diff) |
Update mdds to 1.3.1.
This newer version incorporates the change in ofz-4048.patch.1.
Change-Id: Iaccbf2694bbd752f9949c491219aa5ab8caa45fe
Reviewed-on: https://gerrit.libreoffice.org/44615
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Kohei Yoshida <libreoffice@kohei.us>
Diffstat (limited to 'external')
-rw-r--r-- | external/mdds/UnpackedTarball_mdds.mk | 1 | ||||
-rw-r--r-- | external/mdds/ofz-4048.patch.1 | 48 |
2 files changed, 0 insertions, 49 deletions
diff --git a/external/mdds/UnpackedTarball_mdds.mk b/external/mdds/UnpackedTarball_mdds.mk index 1958b32c2cb4..c015f4c13f5a 100644 --- a/external/mdds/UnpackedTarball_mdds.mk +++ b/external/mdds/UnpackedTarball_mdds.mk @@ -14,7 +14,6 @@ $(eval $(call gb_UnpackedTarball_set_tarball,mdds,$(MDDS_TARBALL))) $(eval $(call gb_UnpackedTarball_set_patchlevel,mdds,0)) $(eval $(call gb_UnpackedTarball_add_patches,mdds,\ - external/mdds/ofz-4048.patch.1 \ )) # vim: set noet sw=4 ts=4: diff --git a/external/mdds/ofz-4048.patch.1 b/external/mdds/ofz-4048.patch.1 deleted file mode 100644 index 887a53ef9e28..000000000000 --- a/external/mdds/ofz-4048.patch.1 +++ /dev/null @@ -1,48 +0,0 @@ -diff --git a/include/mdds/flat_segment_tree_def.inl b/include/mdds/flat_segment_tree_def.inl -index 58de366..00cc1c6 100644 ---- a/include/mdds/flat_segment_tree_def.inl -+++ b/include/mdds/flat_segment_tree_def.inl -@@ -778,7 +778,7 @@ bool flat_segment_tree<_Key, _Value>::adjust_segment_range(key_type& start_key, - // Invalid order of segment range. - return false; - -- if (end_key < m_left_leaf->value_leaf.key || start_key > m_right_leaf->value_leaf.key) -+ if (end_key < m_left_leaf->value_leaf.key || start_key >= m_right_leaf->value_leaf.key) - // The new segment does not overlap the current interval. - return false; - -diff --git a/src/flat_segment_tree_test.cpp b/src/flat_segment_tree_test.cpp -index bb29918..b94f0fd 100644 ---- a/src/flat_segment_tree_test.cpp -+++ b/src/flat_segment_tree_test.cpp -@@ -1986,6 +1986,22 @@ void fst_test_insert_out_of_bound() - pos = ret.first; - } - -+void fst_test_insert_out_of_bound_2() -+{ -+ stack_printer __stack_printer__("::fst_test_insert_out_of_bound_2"); -+ -+ typedef flat_segment_tree<int, bool> db_type; -+ db_type db(0, 256, false); -+ -+ // The range is entirely out-of-bound, but the start range equals the -+ // upper bound of the valid range. -+ auto ret = db.insert_back(256, 1024, true); -+ -+ // Insertion never took place. -+ assert(ret.first == db.end()); -+ assert(!ret.second); -+} -+ - void fst_test_segment_iterator() - { - stack_printer __stack_printer__("::fst_test_segment_iterator"); -@@ -2115,6 +2131,7 @@ int main (int argc, char **argv) - fst_test_assignment(); - fst_test_non_numeric_value(); - fst_test_insert_out_of_bound(); -+ fst_test_insert_out_of_bound_2(); - fst_test_segment_iterator(); - } - |