diff options
author | Lioncash <mathew1800@gmail.com> | 2019-02-25 16:01:22 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-02-25 16:14:05 +0100 |
commit | 4f8cd74061464d01e0c3a4ea47a4141e3597cb57 (patch) | |
tree | f5aac572fb3f670eb607ac9fbb1ca559a9845e59 | |
parent | kernel/handle_table: Resolve truncation warnings (diff) | |
download | yuzu-4f8cd74061464d01e0c3a4ea47a4141e3597cb57.tar yuzu-4f8cd74061464d01e0c3a4ea47a4141e3597cb57.tar.gz yuzu-4f8cd74061464d01e0c3a4ea47a4141e3597cb57.tar.bz2 yuzu-4f8cd74061464d01e0c3a4ea47a4141e3597cb57.tar.lz yuzu-4f8cd74061464d01e0c3a4ea47a4141e3597cb57.tar.xz yuzu-4f8cd74061464d01e0c3a4ea47a4141e3597cb57.tar.zst yuzu-4f8cd74061464d01e0c3a4ea47a4141e3597cb57.zip |
-rw-r--r-- | src/core/hle/kernel/handle_table.cpp | 1 | ||||
-rw-r--r-- | src/core/hle/kernel/handle_table.h | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/core/hle/kernel/handle_table.cpp b/src/core/hle/kernel/handle_table.cpp index a30038dca..cd3508fa9 100644 --- a/src/core/hle/kernel/handle_table.cpp +++ b/src/core/hle/kernel/handle_table.cpp @@ -23,7 +23,6 @@ constexpr u16 GetGeneration(Handle handle) { } // Anonymous namespace HandleTable::HandleTable() { - next_generation = 1; Clear(); } diff --git a/src/core/hle/kernel/handle_table.h b/src/core/hle/kernel/handle_table.h index 89a3bc740..5fa55c783 100644 --- a/src/core/hle/kernel/handle_table.h +++ b/src/core/hle/kernel/handle_table.h @@ -107,10 +107,10 @@ private: * Global counter of the number of created handles. Stored in `generations` when a handle is * created, and wraps around to 1 when it hits 0x8000. */ - u16 next_generation; + u16 next_generation = 1; /// Head of the free slots linked list. - u16 next_free_slot; + u16 next_free_slot = 0; }; } // namespace Kernel |