Sfoglia il codice sorgente

nfp_types: silence -Wtype-limits

Liam 3 anni fa
parent
commit
9574429c5f
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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 {
     bool IsValidDate() const {
         const bool is_day_valid = GetDay() > 0 && GetDay() < 32;
         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;
         const bool is_year_valid = GetYear() >= 2000;
         return is_year_valid && is_month_valid && is_day_valid;
         return is_year_valid && is_month_valid && is_day_valid;
     }
     }