]> git.ameliathe1st.gay Git - voyage-au-centre-des-fichiers.git/commitdiff
Changed a return statement so that the count returned by the allocator is always...
authorAmelia Coutard <eliottulio.coutard@gmail.com>
Thu, 26 May 2022 17:48:56 +0000 (19:48 +0200)
committerAmelia Coutard <eliottulio.coutard@gmail.com>
Thu, 26 May 2022 17:48:56 +0000 (19:48 +0200)
src/paging.cpp

index 530436c983e8c36df8172daaf67f1e9522b69680..7b96ef4d3a802a0ee9f794835f18a5968bbf669d 100644 (file)
@@ -33,7 +33,7 @@ os::paging::page_allocator::block os::paging::page_allocator::allocate(std::uint
                        };
                }
        }
-       return { .ptr = nullptr, .size = 0 };
+       return { .ptr = nullptr, .size = count };
 }
 void os::paging::page_allocator::deallocate(block b) {
        if (b.size == 0) { return; }