summaryrefslogtreecommitdiff
path: root/tables
diff options
context:
space:
mode:
authorYann Ylavic <ylavic@apache.org>2021-08-26 12:33:10 +0000
committerYann Ylavic <ylavic@apache.org>2021-08-26 12:33:10 +0000
commit66d4ef3de686a67b25b0e9670570cb9aef0f668f (patch)
tree535d6c8b2926e530d7c044d7f56760e2a7b0e622 /tables
parentc50db7ae04e949f897d26511d38ad937ec31d213 (diff)
downloadapr-66d4ef3de686a67b25b0e9670570cb9aef0f668f.tar.gz
apr_tables: fix petential left shift of 31 on an int.
apr_tables.c:832:10: runtime error: left shift of 1 by 31 places cannot be represented in type 'int'. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1892618 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'tables')
-rw-r--r--tables/apr_tables.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tables/apr_tables.c b/tables/apr_tables.c
index 6d9aff881..9dc594c13 100644
--- a/tables/apr_tables.c
+++ b/tables/apr_tables.c
@@ -296,8 +296,8 @@ APR_DECLARE(char *) apr_array_pstrcat(apr_pool_t *p,
#define TABLE_HASH_SIZE 32
#define TABLE_INDEX_MASK 0x1f
#define TABLE_HASH(key) (TABLE_INDEX_MASK & *(unsigned char *)(key))
-#define TABLE_INDEX_IS_INITIALIZED(t, i) ((t)->index_initialized & (1 << (i)))
-#define TABLE_SET_INDEX_INITIALIZED(t, i) ((t)->index_initialized |= (1 << (i)))
+#define TABLE_INDEX_IS_INITIALIZED(t, i) ((t)->index_initialized & (1u << (i)))
+#define TABLE_SET_INDEX_INITIALIZED(t, i) ((t)->index_initialized |= (1u << (i)))
/* Compute the "checksum" for a key, consisting of the first
* 4 bytes, normalized for case-insensitivity and packed into