hewei 6 년 전
부모
커밋
af0ca3b2e6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      base/htime.c

+ 1 - 1
base/htime.c

@@ -227,7 +227,7 @@ int weekday_atoi(const char* weekday) {
 }
 
 const char* weekday_itoa(int weekday) {
-    assert(month >= 0 && month <= 7);
+    assert(weekday >= 0 && weekday <= 7);
     if (weekday == 7) weekday = 0;
     return s_weekdays[weekday];
 }