瀏覽代碼

Merge pull request #9028 from liamwhite/wtype-limits

nfp_types: silence -Wtype-limits
Narr the Reg 3 年之前
父節點
當前提交
b8777b6653
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/core/hle/service/nfp/nfp_types.h

+ 1 - 1
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;
     }