summaryrefslogtreecommitdiff
path: root/src/common/compat.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-04-01 09:39:48 -0400
committerNick Mathewson <nickm@torproject.org>2014-04-01 09:39:48 -0400
commit6bef082d0a6047fd3625f548d60ad257aaed2fab (patch)
tree6a3431ce250f4a6a9704523f8cdbde17975dd90d /src/common/compat.h
parentc0441cca8b483882f5676b98081f0fe4b52d3ae1 (diff)
parent61090bb64f03d5fd944535311191486d22b3134d (diff)
downloadtor-6bef082d0a6047fd3625f548d60ad257aaed2fab.tar.gz
tor-6bef082d0a6047fd3625f548d60ad257aaed2fab.zip
Merge remote-tracking branch 'public/bug11232'
Diffstat (limited to 'src/common/compat.h')
-rw-r--r--src/common/compat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/compat.h b/src/common/compat.h
index c46446414f..bb88818d82 100644
--- a/src/common/compat.h
+++ b/src/common/compat.h
@@ -321,7 +321,7 @@ tor_memstr(const void *haystack, size_t hlen, const char *needle)
extern const uint32_t TOR_##name##_TABLE[]; \
static INLINE int TOR_##name(char c) { \
uint8_t u = c; \
- return !!(TOR_##name##_TABLE[(u >> 5) & 7] & (1 << (u & 31))); \
+ return !!(TOR_##name##_TABLE[(u >> 5) & 7] & (1u << (u & 31))); \
}
DECLARE_CTYPE_FN(ISALPHA)
DECLARE_CTYPE_FN(ISALNUM)