[ox/std] Fix macOS build

This commit is contained in:
2020-06-05 19:47:29 -05:00
parent f86d0e697a
commit c178a2273b
2 changed files with 4 additions and 6 deletions

View File

@@ -35,7 +35,7 @@ T *HeapSegment::data() {
return ox::bit_cast<T*>(ox::bit_cast<uint8_t*>(this) + alignedSize(this));
}
template<typename T = uint8_t>
template<typename T>
T *HeapSegment::end() {
const auto size = alignedSize(this) + alignedSize(this->size);
auto e = ox::bit_cast<uintptr_t>(ox::bit_cast<uint8_t*>(this) + size);