X-Git-Url: https://perl5.git.perl.org/perl5.git/blobdiff_plain/233b59f5c897689b9082b1c3a2b12d17f71582c4..57ef47cc7bcd1b57927d5010f363ccaa10f1d990:/time64.c diff --git a/time64.c b/time64.c index ca31acf..e1ceddf 100644 --- a/time64.c +++ b/time64.c @@ -368,7 +368,7 @@ static struct TM *S_gmtime64_r (const Time64_T *in_time, struct TM *p) p->tm_isdst = 0; #ifdef HAS_TM_TM_ZONE - p->tm_zone = "UTC"; + p->tm_zone = (char *)"UTC"; #endif v_tm_sec = (int)fmod(time, 60.0); @@ -377,7 +377,7 @@ static struct TM *S_gmtime64_r (const Time64_T *in_time, struct TM *p) time = time >= 0 ? floor(time / 60.0) : ceil(time / 60.0); v_tm_hour = (int)fmod(time, 24.0); time = time >= 0 ? floor(time / 24.0) : ceil(time / 24.0); - v_tm_tday = (int)time; + v_tm_tday = time; WRAP (v_tm_sec, v_tm_min, 60); WRAP (v_tm_min, v_tm_hour, 60);