Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit e123134

Browse files
Canfeng Guopcmoore
authored andcommitted
selinux: Use 1UL for EBITMAP_BIT to match maps type
This patch modifies the definition of EBITMAP_BIT in security/selinux/ss/ebitmap.h from 1ULL to 1UL to match the type of elements in the ebitmap_node maps array. This change does not affect the functionality or correctness of the code but aims to enhance code quality by adhering to good programming practices and avoiding unnecessary type conversions. Signed-off-by: Canfeng Guo <guocanfeng@uniontech.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
1 parent 1613e60 commit e123134

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security/selinux/ss/ebitmap.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
sizeof(unsigned long))
3030
#define EBITMAP_UNIT_SIZE BITS_PER_LONG
3131
#define EBITMAP_SIZE (EBITMAP_UNIT_NUMS * EBITMAP_UNIT_SIZE)
32-
#define EBITMAP_BIT 1ULL
32+
#define EBITMAP_BIT 1UL
3333
#define EBITMAP_SHIFT_UNIT_SIZE(x) \
3434
(((x) >> EBITMAP_UNIT_SIZE / 2) >> EBITMAP_UNIT_SIZE / 2)
3535

0 commit comments

Comments
 (0)