Skip to content

Commit ea20cfc

Browse files
committed
Use correct format specifier for size_t
1 parent cc4fde6 commit ea20cfc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ankiconnectc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ void ac_print_ankicard(ankicard ac) {
181181
puts("Ankicard:");
182182
printf("deck: %s\n", ac.deck);
183183
printf("notetype: %s\n", ac.notetype);
184-
printf("Number of fields: %li\n", ac.num_fields);
184+
printf("Number of fields: %zu\n", ac.num_fields);
185185
printf("Fieldnames: [");
186186
for (size_t i = 0; i < ac.num_fields; i++) {
187187
if (i)
@@ -191,7 +191,7 @@ void ac_print_ankicard(ankicard ac) {
191191
puts("]");
192192
printf("Contents: \n");
193193
for (size_t i = 0; i < ac.num_fields; i++)
194-
printf("%li: %s\n", i, ac.fieldentries[i]);
194+
printf("%zu: %s\n", i, ac.fieldentries[i]);
195195
if (ac.tags) {
196196
for (char **tagptr = ac.tags; *tagptr; tagptr++)
197197
printf("%s", *tagptr);

0 commit comments

Comments
 (0)