From: Fletcher T. Penney Date: Wed, 27 Dec 2017 18:50:23 +0000 (-0500) Subject: UPDATED: specify types to silence warnings and prevent theoretical errors X-Git-Tag: 6.3.0^2~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a583594c8aace8b74e2e145242605b5a44a4e6f7;p=multimarkdown UPDATED: specify types to silence warnings and prevent theoretical errors --- diff --git a/Sources/libMultiMarkdown/uuid.c b/Sources/libMultiMarkdown/uuid.c index 2c91c9f..6941e38 100644 --- a/Sources/libMultiMarkdown/uuid.c +++ b/Sources/libMultiMarkdown/uuid.c @@ -149,6 +149,6 @@ void custom_seed_rand(void) { // This is not a "cryptographically secure" random seed, // but good enough for an EPUB id.... unsigned long seed = mix(clock(), time(NULL), clock()); - srand(seed); + srand((unsigned int)seed); } diff --git a/Sources/libMultiMarkdown/writer.c b/Sources/libMultiMarkdown/writer.c index 1d9bd77..eb6abe8 100644 --- a/Sources/libMultiMarkdown/writer.c +++ b/Sources/libMultiMarkdown/writer.c @@ -1772,7 +1772,7 @@ void automatic_search(mmd_engine * e, token * t, trie * ac) { void identify_global_search_terms(mmd_engine * e, scratch_pad * scratch) { // Only search if we have a target - int count = e->abbreviation_stack->size + e->glossary_stack->size; + size_t count = e->abbreviation_stack->size + e->glossary_stack->size; if (count == 0) { return;