summaryrefslogtreecommitdiff
path: root/pp_sys.c
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2020-02-08 15:14:38 +0100
committerYves Orton <demerphq@gmail.com>2020-02-08 15:14:38 +0100
commit9e831ddf560754471ff3a651fa851b7941db927a (patch)
treef15d208db0d2c0eeb946b38d6c2bf57138b440ac /pp_sys.c
parent4f524185854014fa5dd0566975817fe2ade6a614 (diff)
downloadperl-9e831ddf560754471ff3a651fa851b7941db927a.tar.gz
pp_sys.c: add casts to silence Win32 build warnings
Diffstat (limited to 'pp_sys.c')
-rw-r--r--pp_sys.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/pp_sys.c b/pp_sys.c
index a4ff609829..8cd953e2dc 100644
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -2179,9 +2179,9 @@ PP(pp_tell)
}
#if LSEEKSIZE > IVSIZE
- PUSHn( do_tell(gv) );
+ PUSHn( (NV)do_tell(gv) );
#else
- PUSHi( do_tell(gv) );
+ PUSHi( (IV)do_tell(gv) );
#endif
RETURN;
}
@@ -4653,9 +4653,9 @@ PP(pp_time)
{
dSP; dTARGET;
#ifdef BIG_TIME
- XPUSHn( time(NULL) );
+ XPUSHn( (NV)time(NULL) );
#else
- XPUSHi( time(NULL) );
+ XPUSHu( (UV)time(NULL) );
#endif
RETURN;
}
@@ -4855,7 +4855,7 @@ PP(pp_sleep)
}
}
(void)time(&when);
- XPUSHi(when - lasttime);
+ XPUSHu((UV)(when - lasttime));
RETURN;
}