summaryrefslogtreecommitdiff
path: root/ext/Time/HiRes/HiRes.xs
diff options
context:
space:
mode:
Diffstat (limited to 'ext/Time/HiRes/HiRes.xs')
-rw-r--r--ext/Time/HiRes/HiRes.xs2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/Time/HiRes/HiRes.xs b/ext/Time/HiRes/HiRes.xs
index e1e13e143a..4981741430 100644
--- a/ext/Time/HiRes/HiRes.xs
+++ b/ext/Time/HiRes/HiRes.xs
@@ -560,7 +560,7 @@ BOOT:
#ifdef HAS_GETTIMEOFDAY
{
UV auv[2];
- hv_store(PL_modglobal, "Time::NVtime", 12, newSViv((IV) myNVtime()), 0);
+ hv_store(PL_modglobal, "Time::NVtime", 12, newSViv(PTR2IV(myNVtime)), 0);
if (myU2time(auv) == 0)
hv_store(PL_modglobal, "Time::U2time", 12, newSViv((IV) auv[0]), 0);
}