diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-10-03 14:19:23 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-10-03 14:19:23 -0400 |
| commit | 8f346b48aa49ac0590c9c77edb75c63560398e1a (patch) | |
| tree | 4aa6315dc6a43e0118b6cb12efbb6193bea351c0 /parse.c | |
| parent | 35a19a2d1bb7605fa6ceb038b2b8afee760cd11c (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |
