aboutsummaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-10-03 14:19:23 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-10-03 14:19:23 -0400
commit8f346b48aa49ac0590c9c77edb75c63560398e1a (patch)
tree4aa6315dc6a43e0118b6cb12efbb6193bea351c0 /parse.c
parent35a19a2d1bb7605fa6ceb038b2b8afee760cd11c (diff)
Fix up some compiler flags around floating point numbers so they work
better with -Ofast and have more standardized behavior
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c2
1 files changed, 1 insertions, 1 deletions
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)