summaryrefslogtreecommitdiff
path: root/tools/thirdparty/OpenFst/fst/lib/weight.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/thirdparty/OpenFst/fst/lib/weight.h')
-rw-r--r--tools/thirdparty/OpenFst/fst/lib/weight.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/thirdparty/OpenFst/fst/lib/weight.h b/tools/thirdparty/OpenFst/fst/lib/weight.h
index 7050f50..06c2b9e 100644
--- a/tools/thirdparty/OpenFst/fst/lib/weight.h
+++ b/tools/thirdparty/OpenFst/fst/lib/weight.h
@@ -124,7 +124,7 @@ class NaturalLess {
NaturalLess() {
uint64 props = kIdempotent | kLeftSemiring | kRightSemiring;
- if (W::Properties() & props != props)
+ if ((W::Properties() & props) != props)
LOG(ERROR) << "NaturalLess: Weight type is not idempotent and "
<< "(left and right) distributive: " << W::Type();
}