D4003: index: write expression for encoded revision index consistently
yuja (Yuya Nishihara)
phabricator at mercurial-scm.org
Thu Aug 2 08:57:51 EDT 2018
yuja added a comment.
> - n->children[k] = -rev - 1; + n->children[k] = -(rev + 1);
This is technically less correct since (MAX_INT + 1) overflows, but maybe
we don't care?
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D4003
To: martinvonz, #hg-reviewers, pulkit
Cc: yuja, mercurial-devel
More information about the Mercurial-devel
mailing list