diff --git a/math/openfst-vosk/files/patch-src_include_fst_bi-table.h b/math/openfst-vosk/files/patch-src_include_fst_bi-table.h new file mode 100644 index 000000000000..b6b8a0a22c26 --- /dev/null +++ b/math/openfst-vosk/files/patch-src_include_fst_bi-table.h @@ -0,0 +1,11 @@ +--- src/include/fst/bi-table.h.orig 2021-02-07 08:38:45 UTC ++++ src/include/fst/bi-table.h +@@ -327,7 +327,7 @@ class VectorHashBiTable { + } + + VectorHashBiTable(const VectorHashBiTable &table) +- : selector_(table.s_), ++ : selector_(table.selector_), + fp_(table.fp_), + h_(table.h_), + id2entry_(table.id2entry_), diff --git a/math/openfst-vosk/files/patch-src_include_fst_fst.h b/math/openfst-vosk/files/patch-src_include_fst_fst.h new file mode 100644 index 000000000000..ee516a070325 --- /dev/null +++ b/math/openfst-vosk/files/patch-src_include_fst_fst.h @@ -0,0 +1,13 @@ +--- src/include/fst/fst.h.orig 2021-02-07 08:38:45 UTC ++++ src/include/fst/fst.h +@@ -701,8 +701,8 @@ class FstImpl { + properties_.store(impl.properties_.load(std::memory_order_relaxed), + std::memory_order_relaxed); + type_ = impl.type_; +- isymbols_ = impl.isymbols_ ? impl.isymbols_->Copy() : nullptr; +- osymbols_ = impl.osymbols_ ? impl.osymbols_->Copy() : nullptr; ++ isymbols_.reset(impl.isymbols_ ? impl.isymbols_->Copy() : nullptr); ++ osymbols_.reset(impl.osymbols_ ? impl.osymbols_->Copy() : nullptr); + return *this; + } +