Skip to content

Commit c1e4fb7

Browse files
author
Peiming Liu
committed
address comments
1 parent 837d02f commit c1e4fb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorOps.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1603,7 +1603,7 @@ def IterateOp : SparseTensor_Op<"iterate",
16031603
}
16041604
std::optional<BlockArgument> getLvlCrd(Level lvl) {
16051605
if (getCrdUsedLvls()[lvl]) {
1606-
uint64_t mask = (1 << lvl) - 1;
1606+
uint64_t mask = (static_cast<uint64_t>(0x01u) << lvl) - 1;
16071607
return getCrds()[llvm::popcount(mask & getCrdUsedLvls())];
16081608
}
16091609
return std::nullopt;

0 commit comments

Comments
 (0)