diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-01-09 09:34:28 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-01-09 09:34:28 +0100 |
| commit | a8cf25e6b66425d89b25381bb07fd4074cdc8deb (patch) | |
| tree | fc02c6c61a9d01b8e0ec1b0c1017587be9650a28 /Source | |
| parent | f719c5e4d825b11c510408612e3bdcd0f23a76c3 (diff) | |
mpt: add operator bool for FileType.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'Source')
| -rw-r--r-- | Source/Heap.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/Heap.cxx b/Source/Heap.cxx index 0a159c4e..732fc782 100644 --- a/Source/Heap.cxx +++ b/Source/Heap.cxx @@ -9,7 +9,6 @@ #include <NewKit/Heap.hpp> #include <NewKit/PageManager.hpp> -#include <NewKit/Panic.hpp> /// @file Heap.cxx /// @brief hCore Process Heap Manager @@ -21,7 +20,7 @@ namespace hCore class HeapManager final { public: - static Size& GetCount() { return s_NumPools; } + static SizeT& GetCount() { return s_NumPools; } static Ref<Pmm>& GetPmm() { return s_Pmm; } static Boolean& IsEnabled() { return s_PoolsAreEnabled; } static Array<Ref<PTEWrapper*>, kPoolMaxSz>& The() { return s_Pool; } @@ -162,7 +161,7 @@ namespace hCore /// @brief free a pool pointer. /// @param ptr The pool pointer to free. - /// @return + /// @return status code Int32 pool_free_ptr(voidPtr ptr) { if (!HeapManager::IsEnabled()) |
