X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Ftime%2F__tm_to_time.c;h=9f11805d6eaa4b5b932022d5f9e02601a0f300a5;hp=3fa15fadf3e73139fb8b32a0d526781415683ac9;hb=b5a527f9ff47b0f4b32c606e385a0c27d861a475;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01 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 :) */