File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
mlir/include/mlir/Dialect/SparseTensor/IR Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -531,19 +531,19 @@ static_assert((isUniqueLT(LevelType::Dense) &&
531
531
constexpr uint64_t encodeDim (uint64_t i, uint64_t cf, uint64_t cm) {
532
532
if (cf != 0 ) {
533
533
assert (cf <= 0xfffff && cm == 0 && i <= 0xfffff );
534
- return (0x01L << 60 ) | (cf << 20 ) | i;
534
+ return (0x01ULL << 60 ) | (cf << 20 ) | i;
535
535
}
536
536
if (cm != 0 ) {
537
537
assert (cm <= 0xfffff && i <= 0xfffff );
538
- return (0x02L << 60 ) | (cm << 20 ) | i;
538
+ return (0x02ULL << 60 ) | (cm << 20 ) | i;
539
539
}
540
540
assert (i <= 0x0fffffffffffffffu );
541
541
return i;
542
542
}
543
543
constexpr uint64_t encodeLvl (uint64_t i, uint64_t c, uint64_t ii) {
544
544
if (c != 0 ) {
545
545
assert (c <= 0xfffff && ii <= 0xfffff && i <= 0xfffff );
546
- return (0x03L << 60 ) | (c << 20 ) | (ii << 40 ) | i;
546
+ return (0x03ULL << 60 ) | (c << 20 ) | (ii << 40 ) | i;
547
547
}
548
548
assert (i <= 0x0fffffffffffffffu );
549
549
return i;
You can’t perform that action at this time.
0 commit comments