As far as I can tell, rank is stored as a 32-bit big endian value, I'm
not sure how grabbing the first byte can possibly work. I assume
there's no test coverage here?
cc @pacien
Fixes: https://www.mercurial-scm.org/repo/hg/rev/e633e660158f
Alphare | |
pacien |
hg-reviewers |
As far as I can tell, rank is stored as a 32-bit big endian value, I'm
not sure how grabbing the first byte can possibly work. I assume
there's no test coverage here?
cc @pacien
Fixes: https://www.mercurial-scm.org/repo/hg/rev/e633e660158f
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
FYI I took the liberty to send this to the CI to confirm this either works or is part of code that is not covered. I'll wait for @pacien to answer
I'll amend the title in-flight. This is covered (at least) by test-rank.t, maybe it "works" because we're only testing on little endian machines and the values never exceed 255?