19 Nov
2005
19 Nov
'05
5:12 a.m.
Takeshi Mouri wrote:
Hello,
I try file_descriptor::seek() for a big file over 4GB on Win32, but the result was not correct.
file_descriptor.cpp(185)
LONG lDistanceToMoveHigh = off < 0xffffffff ? static_cast<LONG>(off >> 32) : 0;
I think that lDistanceToMoveHigh always becomes 0. The condition above should be "off > 0xffffffff".
Yeah, this is definitely wrong. It should just be LONG lDistanceToMoveHigh = static_cast<LONG>(off >> 32); It's hard to test features that require really huge files. Thanks for pointing this out.
Regards, Takeshi Mouri
-- Jonathan Turkanis www.kangaroologic.com