fix assumptions that char is signed
[musl] / src / time / tzset.c
index 6d69957..0cd47cf 100644 (file)
@@ -15,15 +15,14 @@ int   __dst_offset = 0;
 weak_alias(__timezone, timezone);
 weak_alias(__daylight, daylight);
 weak_alias(__tzname, tzname);
-weak_alias(__dst_offset, dst_offset);
 
 static char std_name[TZNAME_MAX+1];
 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;