[ox] Fix remaining implicit conversion issues
This commit is contained in:
4
deps/ox/src/ox/fs/filesystem/directory.hpp
vendored
4
deps/ox/src/ox/fs/filesystem/directory.hpp
vendored
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2015 - 2022 gary@drinkingtea.net
|
||||
* Copyright 2015 - 2023 gary@drinkingtea.net
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
@ -69,7 +69,7 @@ struct OX_PACKED DirectoryEntry {
|
||||
|
||||
[[nodiscard]]
|
||||
InodeId_t size() const {
|
||||
return fullSize() - sizeof(*this);
|
||||
return fullSize() - static_cast<InodeId_t>(sizeof(*this));
|
||||
}
|
||||
|
||||
void setSize(std::size_t) {
|
||||
|
Reference in New Issue
Block a user