Fixed warning "cast-align" (issue #914)

This commit is contained in:
Benoit Blanchon
2019-02-28 17:20:01 +01:00
parent d6e7709866
commit f3265d2111
4 changed files with 10 additions and 5 deletions

View File

@@ -91,7 +91,7 @@ class MemoryPool {
return reinterpret_cast<T*>(allocRight(sizeof(T)));
}
char* allocRight(size_t bytes) {
void* allocRight(size_t bytes) {
if (!canAlloc(bytes)) return 0;
_right -= bytes;
return _right;