It was sometimes "-(v + 1)" and sometimes "-v - 1" before this patch.
Details
Details
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
Event Timeline
Comment Actions
- 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?