Fix the format for size_t

This commit is contained in:
Patrick Pelissier committed 2018-04-19 22:13:27 +02:00
1 parent 8be81ac09e
commit 3be27aefa3
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -54,7 +54,7 @@ int main(void)
break;
case 3:
printf("Size of Map: %lu\n", (unsigned long) dict_map_size(mp) );
printf("Size of Map: %zu\n", dict_map_size(mp) );
break;
case 4:
+1 -1
View File
@@ -13,6 +13,6 @@ int main(void)
M_LET(wordcount, DICT_SET_OPLIST(dict_str, STRING_OPLIST)) {
while (string_fget_word(word, " \t\n,.!;:?", stdin))
dict_str_set_at(wordcount, word);
printf ("Words: %lu\n", dict_str_size(wordcount));
printf ("Words: %zu\n", dict_str_size(wordcount));
}
}