Skip to content

Commit

Permalink
Silence compiler warning on 32-bit arches
Browse files Browse the repository at this point in the history
  • Loading branch information
linas committed Sep 7, 2021
1 parent e8e17d8 commit ca8c0e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion link-parser/generator-utilities.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ static size_t print_several(const Category* catlist,
cclist, cclen, selected_words,
count_choices, &num_word_choices, 0);
double chance = fraction / ((double) num_word_choices);
printf("# num possible word choices for linkage = %lu chance to print=%f\n",
printf("# num possible word choices for linkage = %zu chance to print=%f\n",
num_word_choices, chance);

/* Now, print those choices */
Expand Down
2 changes: 1 addition & 1 deletion link-parser/link-generator.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ int main (int argc, char* argv[])
printf("#\n# Corpus for language: \"%s\"\n", parms.language);
if (parms.sentence_length != 0)
printf("# Sentence length: %d\n", parms.sentence_length);
printf("# Requested corpus size: %lu\n", parms.corpus_size);
printf("# Requested corpus size: %zu\n", parms.corpus_size);

// Force the system into generation mode by setting the "test"
// parse-option to "generate".
Expand Down

0 comments on commit ca8c0e0

Please sign in to comment.