From 8f346b48aa49ac0590c9c77edb75c63560398e1a Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 3 Oct 2024 14:19:23 -0400 Subject: Fix up some compiler flags around floating point numbers so they work better with -Ofast and have more standardized behavior --- parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'parse.c') diff --git a/parse.c b/parse.c index 3b71c405..def58442 100644 --- a/parse.c +++ b/parse.c @@ -2425,7 +2425,7 @@ PARSER(parse_use) { if (m.length >= 0) { text = Text$trim(text, Pattern("http{0-1 s}://"), true, false); FILE *shasum = popen(heap_strf("echo -n '%s' | sha256sum", Text$as_c_string(text)), "r"); - const int HASH_LEN = 32; + const size_t HASH_LEN = 32; char *hash = GC_MALLOC_ATOMIC(HASH_LEN + 1); size_t just_read = fread(hash, sizeof(char), HASH_LEN, shasum); if (just_read < HASH_LEN) -- cgit v1.2.3