Skip to content

Commit 5fec90f

Browse files
committed
Fix numeric matching
1 parent acfb724 commit 5fec90f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/GrammarApplicator_matchSet.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,10 @@ uint32_t GrammarApplicator::doesTagMatchReading(const Reading& reading, const Ta
474474
else if (tag.type & T_NUMERICAL) {
475475
for (const auto& mter : reading.tags_numerical) {
476476
const Tag& itag = *(mter.second);
477-
match = test_tag_numerical(reading, tag, itag);
477+
auto rv = test_tag_numerical(reading, tag, itag);
478+
if (rv) {
479+
match = rv;
480+
}
478481
}
479482
}
480483
else if (tag.type & (T_VARIABLE|T_LOCAL_VARIABLE)) {

0 commit comments

Comments
 (0)