Skip to content

Commit f6ae41e

Browse files
authored
Use the C++ language so this can compile (#353)
1 parent 36f98f5 commit f6ae41e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/polygeist/Ops.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2329,7 +2329,7 @@ class SelectOfExt final : public OpRewritePattern<arith::SelectOp> {
23292329

23302330
auto fitsIn = [&](auto i, int width) {
23312331
// if there is nothing in the bits that would be discarded
2332-
return !((~((static_cast<typeof i>(1) << width) - 1)) & i);
2332+
return !((~((static_cast<decltype(i)>(1) << width) - 1)) & i);
23332333
};
23342334

23352335
// Truncate the other non-extended const but only if the original constant

0 commit comments

Comments
 (0)