mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-15 00:16:48 +00:00
result: update for accurate ::Includes
This commit is contained in:
parent
14d50c0e39
commit
f63d79d8f9
1 changed files with 2 additions and 2 deletions
|
@ -171,8 +171,8 @@ namespace ams {
|
|||
static constexpr typename ResultTraits::BaseType StartValue = ResultTraits::MakeStaticValue<Module, DescriptionStart>::value;
|
||||
static constexpr typename ResultTraits::BaseType EndValue = ResultTraits::MakeStaticValue<Module, DescriptionEnd>::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;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue