29 lines
1.1 KiB
Diff
29 lines
1.1 KiB
Diff
diff --git a/src/include/fst/bi-table.h b/src/include/fst/bi-table.h
|
|
index 7c5be23..4527001 100644
|
|
--- a/src/include/fst/bi-table.h
|
|
+++ b/src/include/fst/bi-table.h
|
|
@@ -327,7 +327,7 @@ class VectorHashBiTable {
|
|
}
|
|
|
|
VectorHashBiTable(const VectorHashBiTable<I, T, S, FP, H, HS> &table)
|
|
- : selector_(table.s_),
|
|
+ : selector_(table.selector_),
|
|
fp_(table.fp_),
|
|
h_(table.h_),
|
|
id2entry_(table.id2entry_),
|
|
diff --git a/src/include/fst/fst.h b/src/include/fst/fst.h
|
|
index 80e3948..57cf1fd 100644
|
|
--- a/src/include/fst/fst.h
|
|
+++ b/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;
|
|
}
|
|
|