Specify 1U over 1 for bitmaps

This commit is contained in:
Rose
2023-10-13 23:02:00 -04:00
committed by Todd C. Miller
parent 873e0de078
commit dd8426f9cf
2 changed files with 6 additions and 6 deletions

View File

@@ -55,11 +55,11 @@
/* Align address to a (compat) word boundary. */
#define WORDALIGN(_a, _r) \
(((_a) + ((long)(_r).wordsize - 1L)) & ~((long)(_r).wordsize - 1L))
(((_a) + ((unsigned long)(_r).wordsize - 1UL)) & ~((unsigned long)(_r).wordsize - 1UL))
/* Align pointer to a native word boundary. */
#define LONGALIGN(_p) \
(((unsigned long)(_p) + (sizeof(long) - 1)) & ~(sizeof(long) - 1))
(((unsigned long)(_p) + (sizeof(unsigned long) - 1UL)) & ~(sizeof(unsigned long) - 1UL))
/*
* See syscall(2) for a list of registers used in system calls.