Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
bead58cb
Kaydet (Commit)
bead58cb
authored
Haz 29, 2015
tarafından
David Tardon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix build of libetonyek with older versions of gcc
Change-Id: I19586eaae36fac7fa750614e6e31eff1a1e8440c
üst
48abc972
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
56 additions
and
0 deletions
+56
-0
0001-another-step-to-allow-fst-to-use-any-value-type.patch.1
...1-another-step-to-allow-fst-to-use-any-value-type.patch.1
+55
-0
UnpackedTarball_mdds.mk
external/mdds/UnpackedTarball_mdds.mk
+1
-0
No files found.
external/mdds/0001-another-step-to-allow-fst-to-use-any-value-type.patch.1
0 → 100644
Dosyayı görüntüle @
bead58cb
From 5fc9214fb94595e1a2c0b9e0285037f5a2fa59bf Mon Sep 17 00:00:00 2001
From: David Tardon <dtardon@redhat.com>
Date: Mon, 29 Jun 2015 14:28:42 +0200
Subject: [PATCH] another step to allow fst to use any value type
For some reason this is not a problem on modern compilers...
---
include/mdds/flat_segment_tree.hpp | 1 -
include/mdds/flat_segment_tree_def.inl | 2 +-
src/flat_segment_tree_test.cpp | 4 ++++
3 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/include/mdds/flat_segment_tree.hpp b/include/mdds/flat_segment_tree.hpp
index b656bc3..02cf87e 100644
--- a/include/mdds/flat_segment_tree.hpp
+++ b/include/mdds/flat_segment_tree.hpp
@@ -32,7 +32,6 @@
#include <sstream>
#include <utility>
#include <cassert>
-#include <limits>
#include "mdds/node.hpp"
#include "mdds/flat_segment_tree_itr.hpp"
diff --git a/include/mdds/flat_segment_tree_def.inl b/include/mdds/flat_segment_tree_def.inl
index ebfee99..5fef1c3 100644
--- a/include/mdds/flat_segment_tree_def.inl
+++ b/include/mdds/flat_segment_tree_def.inl
@@ -46,7 +46,7 @@ flat_segment_tree<_Key, _Value>::flat_segment_tree(key_type min_val, key_type ma
// We don't ever use the value of the right leaf node, but we need the
// value to be always the same, to make it easier to check for
// equality.
- m_right_leaf->value_leaf.value = ::std::numeric_limits<value_type>::max();
+ m_right_leaf->value_leaf.value = init_val;
}
template<typename _Key, typename _Value>
diff --git a/src/flat_segment_tree_test.cpp b/src/flat_segment_tree_test.cpp
index 81858f5..f7aead7 100644
--- a/src/flat_segment_tree_test.cpp
+++ b/src/flat_segment_tree_test.cpp
@@ -1943,6 +1943,10 @@ void fst_test_non_numeric_value()
db.search(1, result);
assert(result == "hello world");
+
+ db_type db2(db);
+
+ assert(db == db2);
}
int main (int argc, char **argv)
--
2.4.2
external/mdds/UnpackedTarball_mdds.mk
Dosyayı görüntüle @
bead58cb
...
...
@@ -16,6 +16,7 @@ $(eval $(call gb_UnpackedTarball_set_patchlevel,mdds,3))
$(eval $(call gb_UnpackedTarball_add_patches,mdds,\
external/mdds/mdds_0.6.0.patch \
external/mdds/mdds-c++98.patch.0 \
external/mdds/0001-another-step-to-allow-fst-to-use-any-value-type.patch.1 \
))
# vim: set noet sw=4 ts=4:
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment