[Issue 18017] [External] [DMC] File.size() uses a 32-bit signed integer for size internally (gives wrong results for files over ≈2.1 GB)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Nov 28 18:04:59 UTC 2017


https://issues.dlang.org/show_bug.cgi?id=18017

--- Comment #3 from Steven Schveighoffer <schveiguy at yahoo.com> ---
Nevertheless, it's still a bug, as File.size using ulong as its return seems to
suggest it can handle it.

Note, there's also std.file.getSize:
https://dlang.org/phobos/std_file.html#getSize if you aren't actually reading
anything in the file.

--


More information about the Digitalmars-d-bugs mailing list