diff options
Diffstat (limited to 'stdlib/paths.c')
| -rw-r--r-- | stdlib/paths.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stdlib/paths.c b/stdlib/paths.c index 98bcab56..a42dc5ad 100644 --- a/stdlib/paths.c +++ b/stdlib/paths.c @@ -277,7 +277,7 @@ public OptionalArray_t Path$read_bytes(Path_t path, OptionalInt_t count) if (fstat(fd, &sb) != 0) return NONE_ARRAY; - int64_t const target_count = count.small ? Int_to_Int64(count, false) : INT64_MAX; + int64_t const target_count = count.small ? Int64$from_int(count, false) : INT64_MAX; if (target_count < 0) fail("Cannot read a negative number of bytes!"); |
