X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Ftime%2F__tm_to_time.c;h=9f11805d6eaa4b5b932022d5f9e02601a0f300a5;hb=330fd96213da324f9164081df9a5226790d7c4ec;hp=3fa15fadf3e73139fb8b32a0d526781415683ac9;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01;p=musl diff --git a/src/time/__tm_to_time.c b/src/time/__tm_to_time.c index 3fa15fad..9f11805d 100644 --- a/src/time/__tm_to_time.c +++ b/src/time/__tm_to_time.c @@ -26,7 +26,7 @@ time_t __tm_to_time(struct tm *tm) z100 = Q(z4, 25); z400 = Q(z100, 4); day += year*365 + z4 - z100 + z400 + - month[(int []){0,31,59,90,120,151,181,212,243,273,304,335}]; + month[(const int []){0,31,59,90,120,151,181,212,243,273,304,334}]; return (long long)day*86400 + tm->tm_hour*3600 + tm->tm_min*60 + tm->tm_sec - -946684800; /* the dawn of time :) */