Skip to content

Commit 70c9152

Browse files
authored
[libc] Fix non-calls to cpp::is_complex_type_same (#121257)
Some uses were not actually calls, just references to the name.
1 parent 28ae2ff commit 70c9152

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

libc/test/UnitTest/FPMatcher.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,11 @@ template <typename T, TestCond Condition> class CFPMatcher : public Matcher<T> {
131131
else if constexpr (cpp::is_complex_type_same<T, _Complex long double>())
132132
return matchComplex<long double>();
133133
#ifdef LIBC_TYPES_HAS_CFLOAT16
134-
else if constexpr (cpp::is_complex_type_same<T, cfloat16>)
134+
else if constexpr (cpp::is_complex_type_same<T, cfloat16>())
135135
return matchComplex<float16>();
136136
#endif
137137
#ifdef LIBC_TYPES_HAS_CFLOAT128
138-
else if constexpr (cpp::is_complex_type_same<T, cfloat128>)
138+
else if constexpr (cpp::is_complex_type_same<T, cfloat128>())
139139
return matchComplex<float128>();
140140
#endif
141141
}
@@ -148,11 +148,11 @@ template <typename T, TestCond Condition> class CFPMatcher : public Matcher<T> {
148148
else if constexpr (cpp::is_complex_type_same<T, _Complex long double>())
149149
return explainErrorComplex<long double>();
150150
#ifdef LIBC_TYPES_HAS_CFLOAT16
151-
else if constexpr (cpp::is_complex_type_same<T, cfloat16>)
151+
else if constexpr (cpp::is_complex_type_same<T, cfloat16>())
152152
return explainErrorComplex<float16>();
153153
#endif
154154
#ifdef LIBC_TYPES_HAS_CFLOAT128
155-
else if constexpr (cpp::is_complex_type_same<T, cfloat128>)
155+
else if constexpr (cpp::is_complex_type_same<T, cfloat128>())
156156
return explainErrorComplex<float128>();
157157
#endif
158158
}

0 commit comments

Comments
 (0)