[Issue 4060] Phobos + linux problems with files > 2GB
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Apr 5 01:06:47 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4060
Justin Spahr-Summers <Justin.SpahrSummers at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |Justin.SpahrSummers at gmail.c
| |om
--- Comment #1 from Justin Spahr-Summers <Justin.SpahrSummers at gmail.com> 2010-04-05 03:06:44 CDT ---
This strikes me as a mistake in the Phobos declaration of seek(). The
underlying stdio fseek() function can only take longs as offsets, and Phobos'
seek() is defined the same way; however, a 'long' in C almost always
corresponds to an 'int' in D.
It's definitely a bug one way or the other, but to work around it you may want
to use offsets from SEEK_CUR instead of SEEK_SET.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list