Skip to content

Commit 87572c9

Browse files
committed
Core (Memory): Add missing pointer cast in AlignedAllocator::allocate().
1 parent 275e1d1 commit 87572c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libvisual/libvisual/lv_aligned_allocator.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ namespace LV
3737
if (!ptr)
3838
throw std::bad_alloc {};
3939

40-
return ptr;
40+
return static_cast<T*> (ptr);
4141
}
4242

4343
void deallocate (T* ptr, std::size_t) noexcept

0 commit comments

Comments
 (0)