소스 검색

fix assumptions that char is signed

Rich Felker 13 년 전
부모
커밋
471c6067d9
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/time/tzset.c

+ 2 - 2
src/time/tzset.c

@@ -21,8 +21,8 @@ static char dst_name[TZNAME_MAX+1];
 
 /* all elements are zero-based */
 static struct rule {
-	char month;
-	char week;
+	signed char month;
+	signed char week;
 	short day;
 	int time;
 } __dst_start, __dst_end;