[ox/fs] Cleanup formatting
This commit is contained in:
parent
13b2df57fe
commit
acf04665bc
4
deps/ox/src/ox/fs/ptrarith/nodebuffer.hpp
vendored
4
deps/ox/src/ox/fs/ptrarith/nodebuffer.hpp
vendored
@ -25,7 +25,7 @@ class OX_PACKED NodeBuffer {
|
||||
LittleEndian<size_t> firstItem = 0;
|
||||
};
|
||||
|
||||
using ItemPtr = Ptr<Item, size_t, sizeof(Header)>;
|
||||
using ItemPtr = Ptr<Item, size_t, sizeof(Header)>;
|
||||
|
||||
class Iterator {
|
||||
private:
|
||||
@ -268,7 +268,7 @@ template<typename size_t, typename Item>
|
||||
Result<typename NodeBuffer<size_t, Item>::ItemPtr> NodeBuffer<size_t, Item>::malloc(std::size_t size) noexcept {
|
||||
const auto sz = static_cast<std::size_t>(size);
|
||||
oxTracef("ox::ptrarith::NodeBuffer::malloc", "Size: {}", sz);
|
||||
size_t fullSize = static_cast<size_t>(sz + sizeof(Item));
|
||||
size_t fullSize = static_cast<size_t>(sz + sizeof(Item));
|
||||
if (m_header.size - m_header.bytesUsed >= fullSize) {
|
||||
auto last = lastItem();
|
||||
size_t addr;
|
||||
|
Loading…
Reference in New Issue
Block a user