summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2022-10-07 09:03:35 -0500
committerGitHub <noreply@github.com>2022-10-07 09:03:35 -0500
commitb8777b6653fc6d07677130b7300bf8bd8a3cbc08 (patch)
tree376fb8e5b650d4b00e64752d7623acb21dd6c7f8 /src
parent61883d8820c057259c6c6113934a44f69742164c (diff)
parent9574429c5f726794ac96a61326f36fdcd61a2232 (diff)
Merge pull request #9028 from liamwhite/wtype-limits
nfp_types: silence -Wtype-limits
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/nfp/nfp_types.h2
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 {
bool IsValidDate() const {
const bool is_day_valid = GetDay() > 0 && GetDay() < 32;
- const bool is_month_valid = GetMonth() >= 0 && GetMonth() < 13;
+ const bool is_month_valid = GetMonth() > 0 && GetMonth() < 13;
const bool is_year_valid = GetYear() >= 2000;
return is_year_valid && is_month_valid && is_day_valid;
}