From ad6dd60474f8b374ab9f1490c3b5d736a3821ec4 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Mon, 30 Nov 2020 17:16:00 -0800 Subject: [PATCH] result: update for accurate ::Includes --- .../libvapours/include/vapours/results/results_common.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/libvapours/include/vapours/results/results_common.hpp b/libraries/libvapours/include/vapours/results/results_common.hpp index 13d32aff6..23610caee 100644 --- a/libraries/libvapours/include/vapours/results/results_common.hpp +++ b/libraries/libvapours/include/vapours/results/results_common.hpp @@ -171,8 +171,8 @@ namespace ams { static constexpr typename ResultTraits::BaseType StartValue = ResultTraits::MakeStaticValue::value; static constexpr typename ResultTraits::BaseType EndValue = ResultTraits::MakeStaticValue::value; public: - NX_CONSTEXPR bool Includes(Result result) { - return StartValue <= result.GetValue() && result.GetValue() <= EndValue; + static constexpr bool Includes(Result result) { + return result.GetModule() == Module && DescriptionStart <= result.GetDescription() && result.GetDescription() <= DescriptionEnd; } };