Skip to content

Commit 69f5a21

Browse files
committed
Fix compilation errors at gcc 4.8.x
1 parent 5895432 commit 69f5a21

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

include/kiwi/Types.h

+1-6
Original file line numberDiff line numberDiff line change
@@ -243,12 +243,7 @@ namespace kiwi
243243

244244
inline constexpr bool areTagsEqual(POSTag a, POSTag b, bool ignoreRegularity = false)
245245
{
246-
if (ignoreRegularity)
247-
{
248-
a = clearIrregular(a);
249-
b = clearIrregular(b);
250-
}
251-
return a == b;
246+
return ignoreRegularity ? (clearIrregular(a) == clearIrregular(b)) : (a == b);
252247
}
253248

254249
constexpr size_t defaultTagSize = (size_t)POSTag::p;

0 commit comments

Comments
 (0)