diff options
author | Chris Robinson <[email protected]> | 2019-09-11 08:08:23 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-09-11 08:08:23 -0700 |
commit | 1a9f1e0869f7327216d57e2a44b6ba9752986152 (patch) | |
tree | 4a79cab0b4a26de8e8d69eb862c821d5a957a84e /common | |
parent | 14c76ca2447a9c905ffad6898795b2024b1a85f6 (diff) |
Fix a few more C-style casts
Diffstat (limited to 'common')
-rw-r--r-- | common/almalloc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/almalloc.cpp b/common/almalloc.cpp index 8ab48248..8700bddc 100644 --- a/common/almalloc.cpp +++ b/common/almalloc.cpp @@ -34,7 +34,7 @@ void *al_malloc(size_t alignment, size_t size) if(ret != nullptr) { *(ret++) = 0x00; - while(((ptrdiff_t)ret&(alignment-1)) != 0) + while((reinterpret_cast<ptrdiff_t>(ret)&(alignment-1)) != 0) *(ret++) = 0x55; } return ret; |