Skip to content

Commit 62838b8

Browse files
committed
[mlir][test] Fix -Wformat in sparse_tensor.c (NFC)
llvm-project/mlir/test/CAPI/sparse_tensor.c:50:42: error: format specifies type 'unsigned long' but the argument has type 'MlirSparseTensorLevelType' (aka 'unsigned long long') [-Werror,-Wformat] 50 | fprintf(stderr, "level_type: %lu\n", lvlTypes[l]); | ~~~ ^~~~~~~~~~~ | %llu 1 error generated.
1 parent 2c2d291 commit 62838b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/test/CAPI/sparse_tensor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ static int testRoundtripEncoding(MlirContext ctx) {
4747
malloc(sizeof(MlirSparseTensorLevelType) * lvlRank);
4848
for (int l = 0; l < lvlRank; ++l) {
4949
lvlTypes[l] = mlirSparseTensorEncodingAttrGetLvlType(originalAttr, l);
50-
fprintf(stderr, "level_type: %lu\n", lvlTypes[l]);
50+
fprintf(stderr, "level_type: %llu\n", lvlTypes[l]);
5151
}
5252
// CHECK: posWidth: 32
5353
int posWidth = mlirSparseTensorEncodingAttrGetPosWidth(originalAttr);

0 commit comments

Comments
 (0)