diff options
author | bunnei <bunneidev@gmail.com> | 2021-05-12 00:40:20 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2021-05-12 00:40:20 +0200 |
commit | eee302b9b9feb325d5444eace51266d238b8e0b3 (patch) | |
tree | e016955d8535a9ba91d3a01dfbcbae8b77765f0b /src/common/tree.h | |
parent | hle: kernel: hle_ipc: Fix outgoing IPC response size calculation. (diff) | |
download | yuzu-eee302b9b9feb325d5444eace51266d238b8e0b3.tar yuzu-eee302b9b9feb325d5444eace51266d238b8e0b3.tar.gz yuzu-eee302b9b9feb325d5444eace51266d238b8e0b3.tar.bz2 yuzu-eee302b9b9feb325d5444eace51266d238b8e0b3.tar.lz yuzu-eee302b9b9feb325d5444eace51266d238b8e0b3.tar.xz yuzu-eee302b9b9feb325d5444eace51266d238b8e0b3.tar.zst yuzu-eee302b9b9feb325d5444eace51266d238b8e0b3.zip |
Diffstat (limited to '')
-rw-r--r-- | src/common/tree.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/tree.h b/src/common/tree.h index 3da49e422..9d2d0df4e 100644 --- a/src/common/tree.h +++ b/src/common/tree.h @@ -322,7 +322,7 @@ void RB_INSERT_COLOR(RBHead<Node>* head, Node* elm) { template <typename Node> void RB_REMOVE_COLOR(RBHead<Node>* head, Node* parent, Node* elm) { Node* tmp; - while ((elm == nullptr || RB_IS_BLACK(elm)) && elm != head->Root()) { + while ((elm == nullptr || RB_IS_BLACK(elm)) && elm != head->Root() && parent != nullptr) { if (RB_LEFT(parent) == elm) { tmp = RB_RIGHT(parent); if (RB_IS_RED(tmp)) { |