diff options
author | Joe Orton <joe@manyfish.uk> | 2020-12-06 15:24:39 +0000 |
---|---|---|
committer | Joe Orton <joe@manyfish.uk> | 2020-12-06 15:24:39 +0000 |
commit | 18b17372a2eb873c9647f0f65f2ba1227139c5bb (patch) | |
tree | 1fcac7c4430d68a040112f4a4fc265dd981de54f | |
parent | fd09cc9b57c43c93acfeed5e861df0e078ea7d70 (diff) | |
download | neon-git-18b17372a2eb873c9647f0f65f2ba1227139c5bb.tar.gz |
* src/ne_string.c (HEX2ASC): Use more brackets, unsigned short.
-rw-r--r-- | src/ne_string.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ne_string.c b/src/ne_string.c index 801f79e..fd7883e 100644 --- a/src/ne_string.c +++ b/src/ne_string.c @@ -661,7 +661,7 @@ static const char hexmap[16] = { '8', '9', 'a', 'b', 'c', 'd', 'e', 'f' }; -#define HEX2ASC(a) (hexmap[(unsigned)a & 0xf]) +#define HEX2ASC(a) (hexmap[((unsigned)(a)) & 0xf]) char *ne__strhash2hex(const unsigned char *digest, size_t len, unsigned int flags) |