Skip to content

Commit a0795c1

Browse files
committed
fixed errors at RuleSet::loadRules on non x86-64 architecture
1 parent 28f186e commit a0795c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/Combiner.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,7 @@ void RuleSet::loadRules(istream& istr)
779779
while (getline(istr, line))
780780
{
781781
if (line[0] == '#') continue;
782-
while (!line.empty() && isSpace(line.back())) line.pop_back();
782+
while (!line.empty() && line.back() < 0x80 && isSpace(line.back())) line.pop_back();
783783
if (line.empty()) continue;
784784

785785
auto fields = split(line, '\t');

0 commit comments

Comments
 (0)