Boost logo

Boost Users :

From: Jonathan Turkanis (technews_at_[hidden])
Date: 2005-11-19 00:12:13


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

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net