Skip to content

Commit 607beb8

Browse files
maerhartKelvinChung2000
authored andcommitted
[RTG] Fix printf format string
1 parent 58305ca commit 607beb8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/CAPI/rtg.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
// RUN: circt-capi-rtg-test 2>&1 | FileCheck %s
1010

11+
#include <inttypes.h>
1112
#include <stdio.h>
1213

1314
#include "circt-c/Dialect/RTG.h"
@@ -158,7 +159,8 @@ static void testImmediate(MlirContext ctx) {
158159
// CHECK: width=32
159160
fprintf(stderr, "width=%u\n", rtgImmediateAttrGetWidth(immediateAttr));
160161
// CHECK: value=42
161-
fprintf(stderr, "value=%llu\n", rtgImmediateAttrGetValue(immediateAttr));
162+
fprintf(stderr, "value=%" PRIu64 "\n",
163+
rtgImmediateAttrGetValue(immediateAttr));
162164
}
163165

164166
int main(int argc, char **argv) {

0 commit comments

Comments
 (0)