Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8116331

Browse files
committed
Fix printf format specfiers in test_int128 module.
Compiler warnings introduced by8c7445a.Author: Dean Rasheed <dean.a.rasheed@gmail.com>
1 parent73d33be commit8116331

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/test/modules/test_int128/test_int128.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ main(int argc, char **argv)
105105

106106
if (t1.hl.hi!=t2.hl.hi||t1.hl.lo!=t2.hl.lo)
107107
{
108-
printf(INT128_HEX_FORMAT" + unsigned "PRIx64"\n",x,y,z);
108+
printf(INT128_HEX_FORMAT" + unsigned%016"PRIx64"\n",x,y,z);
109109
printf("native = "INT128_HEX_FORMAT"\n",t1.hl.hi,t1.hl.lo);
110110
printf("result = "INT128_HEX_FORMAT"\n",t2.hl.hi,t2.hl.lo);
111111
return1;
@@ -120,7 +120,7 @@ main(int argc, char **argv)
120120

121121
if (t1.hl.hi!=t2.hl.hi||t1.hl.lo!=t2.hl.lo)
122122
{
123-
printf(INT128_HEX_FORMAT" + signed "PRIx64"\n",x,y,z);
123+
printf(INT128_HEX_FORMAT" + signed%016"PRIx64"\n",x,y,z);
124124
printf("native = "INT128_HEX_FORMAT"\n",t1.hl.hi,t1.hl.lo);
125125
printf("result = "INT128_HEX_FORMAT"\n",t2.hl.hi,t2.hl.lo);
126126
return1;
@@ -134,7 +134,7 @@ main(int argc, char **argv)
134134

135135
if (t1.hl.hi!=t2.hl.hi||t1.hl.lo!=t2.hl.lo)
136136
{
137-
printf(PRIx64" * "PRIx64"\n",x,y);
137+
printf("%016"PRIx64" *%016"PRIx64"\n",x,y);
138138
printf("native = "INT128_HEX_FORMAT"\n",t1.hl.hi,t1.hl.lo);
139139
printf("result = "INT128_HEX_FORMAT"\n",t2.hl.hi,t2.hl.lo);
140140
return1;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp