> On 18 Aug 2018, at 17:03, Akim Demaille <a...@lrde.epita.fr> wrote: > > I don’t remember why I wrote it this way, but today I don’t care much about > INT_MIN here. I think the code has become too complex for what it meant to > do. Also, maybe I should have sticked to int instead of trying to unsigned, > but it’s too late to change that :)
Maybe std::fpos and std::streamoff could be used, which are guaranteed to be able to represent the maximum file size.