From: Amelia Coutard Date: Thu, 21 Dec 2023 21:42:00 +0000 (+0100) Subject: Une déclaration un poil plus correcte pour deux des fonctions X-Git-Url: https://git.ameliathe1st.gay/?a=commitdiff_plain;h=1fc850cb627e430b6b557047dfd2f30259c9c37f;p=voyage-au-centre-des-fichiers.git Une déclaration un poil plus correcte pour deux des fonctions --- diff --git a/kernel/src/lib/phys_ptr.hpp b/kernel/src/lib/phys_ptr.hpp index 286b96d..0755c0b 100644 --- a/kernel/src/lib/phys_ptr.hpp +++ b/kernel/src/lib/phys_ptr.hpp @@ -27,10 +27,10 @@ public: constexpr explicit phys_ptr(std::uintptr_t phys_addr): phys_addr(phys_addr) {} constexpr phys_ptr(std::nullptr_t): phys_addr(~0ull) {} - void* operator->() const { + inline void* operator->() const { return get_virt_addr(); } - explicit operator void*() const { + inline explicit operator void*() const { return get_virt_addr(); }