Removing some casts and uses of void*

This commit is contained in:
Matthew Parkinson
2019-04-25 10:19:42 +01:00
committed by Matthew Parkinson
parent 2c613b4f8a
commit 47428a096c
4 changed files with 11 additions and 12 deletions

View File

@@ -158,7 +158,7 @@ extern "C"
void** memptr, size_t alignment, size_t size)
{
if (
((alignment % sizeof(void*)) != 0) ||
((alignment % sizeof(uintptr_t)) != 0) ||
((alignment & (alignment - 1)) != 0) || (alignment == 0))
{
return EINVAL;