diff options
| author | 2022-10-07 06:52:28 -0400 | |
|---|---|---|
| committer | 2022-10-07 06:52:28 -0400 | |
| commit | 9574429c5f726794ac96a61326f36fdcd61a2232 (patch) | |
| tree | 376fb8e5b650d4b00e64752d7623acb21dd6c7f8 | |
| parent | Merge pull request #6142 from lat9nq/prog_meta_ref_bind_address (diff) | |
| download | yuzu-9574429c5f726794ac96a61326f36fdcd61a2232.tar.gz yuzu-9574429c5f726794ac96a61326f36fdcd61a2232.tar.xz yuzu-9574429c5f726794ac96a61326f36fdcd61a2232.zip | |
nfp_types: silence -Wtype-limits
| -rw-r--r-- | src/core/hle/service/nfp/nfp_types.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/service/nfp/nfp_types.h b/src/core/hle/service/nfp/nfp_types.h index 867ea2f36..c09f9ddb6 100644 --- a/src/core/hle/service/nfp/nfp_types.h +++ b/src/core/hle/service/nfp/nfp_types.h | |||
| @@ -167,7 +167,7 @@ struct AmiiboDate { | |||
| 167 | 167 | ||
| 168 | bool IsValidDate() const { | 168 | bool IsValidDate() const { |
| 169 | const bool is_day_valid = GetDay() > 0 && GetDay() < 32; | 169 | const bool is_day_valid = GetDay() > 0 && GetDay() < 32; |
| 170 | const bool is_month_valid = GetMonth() >= 0 && GetMonth() < 13; | 170 | const bool is_month_valid = GetMonth() > 0 && GetMonth() < 13; |
| 171 | const bool is_year_valid = GetYear() >= 2000; | 171 | const bool is_year_valid = GetYear() >= 2000; |
| 172 | return is_year_valid && is_month_valid && is_day_valid; | 172 | return is_year_valid && is_month_valid && is_day_valid; |
| 173 | } | 173 | } |