diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-03-28 14:30:42 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-03-28 14:30:42 -0400 |
| commit | 5ac4ecea38737974f8f0927f01e8a6a5febf863b (patch) | |
| tree | 50d01fd19d663380fd3ff1d386063c2178bf976f /src/stdlib | |
| parent | 9f0d8d64db6d7adbfeba9943a04f5534315fdc2a (diff) | |
Minor compat fix
Diffstat (limited to 'src/stdlib')
| -rw-r--r-- | src/stdlib/paths.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stdlib/paths.c b/src/stdlib/paths.c index cf0eb049..ec07f2d0 100644 --- a/src/stdlib/paths.c +++ b/src/stdlib/paths.c @@ -339,7 +339,7 @@ public OptionalArray_t Path$read_bytes(Path_t path, OptionalInt_t count) content[sb.st_size] = '\0'; close(fd); if (count.small && (int64_t)sb.st_size < target_count) - fail("Could not read ", target_count, " bytes from ", path, " (only got ", sb.st_size, ")"); + fail("Could not read ", target_count, " bytes from ", path, " (only got ", (uint64_t)sb.st_size, ")"); int64_t len = count.small ? target_count : (int64_t)sb.st_size; return (Array_t){.data=content, .atomic=1, .stride=1, .length=len}; } else { @@ -369,7 +369,7 @@ public OptionalArray_t Path$read_bytes(Path_t path, OptionalInt_t count) } close(fd); if (count.small != 0 && (int64_t)len < target_count) - fail("Could not read ", target_count, " bytes from ", path, " (only got ", len, ")"); + fail("Could not read ", target_count, " bytes from ", path, " (only got ", (uint64_t)len, ")"); return (Array_t){.data=content, .atomic=1, .stride=1, .length=len}; } } |
