mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-03 15:41:41 +00:00
DETECTION: Fix minus on unsigned type warnings
This commit is contained in:
parent
f90ac5c5c7
commit
dc21927538
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user