summaryrefslogtreecommitdiff
path: root/time64.c
diff options
context:
space:
mode:
authorSteve Hay <SteveHay@planit.com>2009-01-13 15:56:00 +0000
committerSteve Hay <SteveHay@planit.com>2009-01-13 16:23:27 +0000
commitcd1759d8c220b9edae81c969dfb04b88bfad2651 (patch)
treefc1def0979b19811d175a44abb28cefa45c5f3fe /time64.c
parent049aabcba31f7c58d7cadff7bb84dd748ced2750 (diff)
downloadperl-cd1759d8c220b9edae81c969dfb04b88bfad2651.tar.gz
Silence Win32 compiler warnings.
Diffstat (limited to 'time64.c')
-rw-r--r--time64.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/time64.c b/time64.c
index c357ce1a6c..5783d5a4f2 100644
--- a/time64.c
+++ b/time64.c
@@ -380,7 +380,7 @@ struct TM *gmtime64_r (const Time64_T *in_time, struct TM *p)
/* Use the system gmtime() if time_t is small enough */
if( SHOULD_USE_SYSTEM_GMTIME(*in_time) ) {
- time_t safe_time = *in_time;
+ time_t safe_time = (time_t)*in_time;
struct tm safe_date;
GMTIME_R(&safe_time, &safe_date);
@@ -505,7 +505,7 @@ struct TM *localtime64_r (const Time64_T *time, struct TM *local_tm)
/* Use the system localtime() if time_t is small enough */
if( SHOULD_USE_SYSTEM_LOCALTIME(*time) ) {
- safe_time = *time;
+ safe_time = (time_t)*time;
TRACE1("Using system localtime for %lld\n", *time);
@@ -532,7 +532,7 @@ struct TM *localtime64_r (const Time64_T *time, struct TM *local_tm)
gm_tm.tm_year = safe_year((Year)(gm_tm.tm_year + 1900)) - 1900;
}
- safe_time = timegm64(&gm_tm);
+ safe_time = (time_t)timegm64(&gm_tm);
if( LOCALTIME_R(&safe_time, &safe_date) == NULL ) {
TRACE1("localtime_r(%d) returned NULL\n", (int)safe_time);
return NULL;