Skip to content

Commit da85bf0

Browse files
authored
Update CompileTimePattern.hpp
arm definition check for align setting missed for x86_64
1 parent e38980f commit da85bf0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CompileTimePattern.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,14 @@ namespace patterns {
1818
continue;
1919
}
2020
else if (c == '/') {
21+
#ifdef __arm64__
2122
while (i < nstr - 1 && (c = s[++i])) {
2223
if (c == 'a') {
2324
align = true;
2425
break;
2526
}
2627
}
28+
#endif
2729
break;
2830
}
2931
else if (c != ' ')
@@ -130,4 +132,4 @@ constexpr auto operator"" _ctpattern() {
130132
#ifndef COMPILETIME_PATTERN
131133
#define COMPILETIME_PATTERN(x) patterns::CompileTimePattern<sizeof(x)-1, patterns::detail::pattern_length(x)>(x)
132134
#endif
133-
#endif
135+
#endif

0 commit comments

Comments
 (0)