Skip to content
Snippets Groups Projects
Commit 5f683209 authored by Danek Duvall's avatar Danek Duvall
Browse files

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.
parent 78f547cd
No related branches found
No related tags found
No related merge requests found
...@@ -530,7 +530,7 @@ ...@@ -530,7 +530,7 @@
static const uint32_t twobytes[8]; static const uint32_t twobytes[8];
static const uint32_t onebyte[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); return _encode(twobytes, onebyte, dest, 0, destsize, src, len, 0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment