Skip to content

Commit 375c313

Browse files
committed
vcomp/cmpto_j2k: fix typeof->decltype
typeof is in c23 but in c++ its counterpart is decltype g++ accepted that but clang++ doesn't since 1ae1768 (2025-11-21)
1 parent 2c18626 commit 375c313

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/video_compress/cmpto_j2k.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ static void usage(bool full) {
740740
return nullptr; \
741741
} \
742742
const uintmax_t maxval = \
743-
std::nextafter(std::numeric_limits<typeof(var)>::max(), \
743+
std::nextafter(std::numeric_limits<decltype(var)>::max(), \
744744
-std::numeric_limits<double>::infinity()); \
745745
if (val < (minval) || val > maxval) { \
746746
MSG(ERROR, \

0 commit comments

Comments
 (0)