diff --git a/mlir/test/CAPI/rewrite.c b/mlir/test/CAPI/rewrite.c index 0745eb496c1d7..48d70579fa325 100644 --- a/mlir/test/CAPI/rewrite.c +++ b/mlir/test/CAPI/rewrite.c @@ -14,6 +14,7 @@ #include "mlir-c/IR.h" #include +#include #include MlirOperation createOperationWithName(MlirContext ctx, const char *name) { @@ -554,10 +555,10 @@ void testGreedyRewriteDriverConfig(MlirContext ctx) { // Test all configuration getters and verify values // CHECK: MaxIterations: 5 - fprintf(stderr, "MaxIterations: %ld\n", + fprintf(stderr, "MaxIterations: %" PRId64 "\n", mlirGreedyRewriteDriverConfigGetMaxIterations(config)); // CHECK: MaxNumRewrites: 100 - fprintf(stderr, "MaxNumRewrites: %ld\n", + fprintf(stderr, "MaxNumRewrites: %" PRId64 "\n", mlirGreedyRewriteDriverConfigGetMaxNumRewrites(config)); // CHECK: UseTopDownTraversal: 1 fprintf(stderr, "UseTopDownTraversal: %d\n",