Commit 547973dc authored by Lev Walkin's avatar Lev Walkin

remove undefined behavior warning

parent 38a91df0
......@@ -70,13 +70,13 @@ extern asn_TYPE_operation_t asn_OP_SET;
#define ASN_SET_ISPRESENT2(map_ptr, PR_x) \
(((unsigned int *)(map_ptr)) \
[(PR_x) / (8 * sizeof(unsigned int))] \
& (1 << ((8 * sizeof(unsigned int)) - 1 \
& (1u << ((8 * sizeof(unsigned int)) - 1 \
- ((PR_x) % (8 * sizeof(unsigned int))))))
#define ASN_SET_MKPRESENT(map_ptr, PR_x) \
(((unsigned int *)(map_ptr)) \
[(PR_x) / (8 * sizeof(unsigned int))] \
|= (1 << ((8 * sizeof(unsigned int)) - 1 \
|= (1u << ((8 * sizeof(unsigned int)) - 1 \
- ((PR_x) % (8 * sizeof(unsigned int))))))
#ifdef __cplusplus
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment