mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
Kernel: Fix harmless type miscast in Process::amount_clean_inode()
This commit is contained in:
parent
e2697c2ddd
commit
95e3aec719
Notes:
sideshowbarker
2024-07-19 08:57:37 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/95e3aec719f
1 changed files with 2 additions and 2 deletions
|
@ -3091,10 +3091,10 @@ size_t Process::amount_dirty_private() const
|
|||
|
||||
size_t Process::amount_clean_inode() const
|
||||
{
|
||||
HashTable<const SharedInodeVMObject*> vmobjects;
|
||||
HashTable<const InodeVMObject*> vmobjects;
|
||||
for (auto& region : m_regions) {
|
||||
if (region.vmobject().is_inode())
|
||||
vmobjects.set(&static_cast<const SharedInodeVMObject&>(region.vmobject()));
|
||||
vmobjects.set(&static_cast<const InodeVMObject&>(region.vmobject()));
|
||||
}
|
||||
size_t amount = 0;
|
||||
for (auto& vmobject : vmobjects)
|
||||
|
|
Loading…
Reference in a new issue