summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/Devel/DProf/DProf.xs4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/Devel/DProf/DProf.xs b/ext/Devel/DProf/DProf.xs
index 62ad464070..291742123b 100644
--- a/ext/Devel/DProf/DProf.xs
+++ b/ext/Devel/DProf/DProf.xs
@@ -30,7 +30,7 @@ static U32 dprof_ticks;
/* HZ == clock ticks per second */
#ifdef VMS
-# define HZ CLK_TCK
+# define HZ ((I32)CLK_TCK)
# define DPROF_HZ HZ
# include <starlet.h> /* prototype for sys$gettim() */
clock_t dprof_times(struct tms *bufptr) {
@@ -60,7 +60,7 @@ static U32 dprof_ticks;
#else
# ifndef HZ
# ifdef CLK_TCK
-# define HZ CLK_TCK
+# define HZ ((I32)CLK_TCK)
# else
# define HZ 60
# endif