DETECTION: Fix minus on unsigned type warnings

This commit is contained in:
Paul Gilbert 2024-06-30 11:48:29 -07:00
parent f90ac5c5c7
commit dc21927538

View File

@ -65,7 +65,7 @@ static inline uint32 alignSizeBuffer() {
static inline void *alignToBuffer(void *buffer) {
// Round up
uintptr tmp = (uintptr)buffer + sizeof(void *) - 1;
return (void *)(tmp & -sizeof(void *));
return (void *)(tmp & -(int)sizeof(void *));
}
} // End of namespace ADDynamicDescription