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.
--- 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);