From 3a0b5678af98832e480115c409495ce835642a09 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Wed, 29 Oct 2025 12:26:52 +0100 Subject: kapi/memory: fix frame number postfix increment --- kapi/include/kapi/memory/frame.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kapi/include/kapi/memory/frame.hpp b/kapi/include/kapi/memory/frame.hpp index 1251e51..8bcf79f 100644 --- a/kapi/include/kapi/memory/frame.hpp +++ b/kapi/include/kapi/memory/frame.hpp @@ -59,7 +59,8 @@ namespace teachos::memory auto constexpr operator++(int) noexcept -> frame { auto copy = *this; - return ++copy; + ++*this; + return copy; } /** -- cgit v1.2.3