Mercurial > hg
changeset 20535:5f683209f5b6 stable
pathencode: eliminate signed integer warnings
Compiling mercurial with the Sun Studio compiler gives seven copies of the
following warning on pathencode.c:
line 533: warning: initializer will be sign-extended: -1
Using explicit unsigned literals silences it.
author | Danek Duvall <danek.duvall@oracle.com> |
---|---|
date | Wed, 19 Feb 2014 13:11:24 -0800 |
parents | 78f547cdc362 |
children | c1febc167d87 35ac807f941c |
files | mercurial/pathencode.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/pathencode.c Wed Feb 19 22:19:45 2014 +0900 +++ b/mercurial/pathencode.c Wed Feb 19 13:11:24 2014 -0800 @@ -530,7 +530,7 @@ static const uint32_t twobytes[8]; static const uint32_t onebyte[8] = { - ~0, 0xffff3ffe, ~0, ~0, ~0, ~0, ~0, ~0, + ~0U, 0xffff3ffe, ~0U, ~0U, ~0U, ~0U, ~0U, ~0U, }; return _encode(twobytes, onebyte, dest, 0, destsize, src, len, 0);