[Mlir-commits] [mlir] Fix printing of `mlirUniformQuantizedSubChannelTypeGetNumBlockSizes` in 32-bit machine. (PR #133763)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon Mar 31 10:46:03 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-mlir

Author: Sandeep Dasgupta (sdasgup3)

<details>
<summary>Changes</summary>

Fixes the issue reporting in https://github.com/llvm/llvm-project/pull/120172#issuecomment-2763212827

---
Full diff: https://github.com/llvm/llvm-project/pull/133763.diff


1 Files Affected:

- (modified) mlir/test/CAPI/quant.c (+1-1) 


``````````diff
diff --git a/mlir/test/CAPI/quant.c b/mlir/test/CAPI/quant.c
index 30f376ebeb112..be4595fd39e81 100644
--- a/mlir/test/CAPI/quant.c
+++ b/mlir/test/CAPI/quant.c
@@ -268,7 +268,7 @@ void testUniformSubChannelType(MlirContext ctx) {
           mlirTypeIsNull(illegalSubChannel));
 
   // CHECK: num dims: 2
-  fprintf(stderr, "num dims: %" PRId64 "\n",
+  fprintf(stderr, "num dims: %" PRIdPTR "\n",
           mlirUniformQuantizedSubChannelTypeGetNumBlockSizes(subChannel));
 
   // CHECK: axis-block-size-pair[0]: 0:1

``````````

</details>


https://github.com/llvm/llvm-project/pull/133763


More information about the Mlir-commits mailing list