Change 16198 by jhi@alpha on 2002/04/26 20:10:53
Subject: Re: [PATCH ext/Time/HiRes/HiRes.pm] Political Correctness
From: Simon Cozens <[EMAIL PROTECTED]>
Date: Fri, 26 Apr 2002 21:58:21 +0100
Message-ID: <[EMAIL PROTECTED]>
Affected files ...
.... //depot/perl/ext/Time/HiRes/HiRes.pm#13 edit
Differences ...
==== //depot/perl/ext/Time/HiRes/HiRes.pm#13 (text) ====
Index: perl/ext/Time/HiRes/HiRes.pm
--- perl/ext/Time/HiRes/HiRes.pm.~1~ Fri Apr 26 14:15:05 2002
+++ perl/ext/Time/HiRes/HiRes.pm Fri Apr 26 14:15:05 2002
@@ -282,7 +282,7 @@
SV **svp = hv_fetch(PL_modglobal, "Time::NVtime", 12, 0);
if (!svp) croak("Time::HiRes is required");
if (!SvIOK(*svp)) croak("Time::NVtime isn't a function pointer");
- myNVtime = (double(*)()) SvIV(*svp);
+ myNVtime = INT2PTR(double(*)(), SvIV(*svp));
printf("The current time is: %f\n", (*myNVtime)());
=head1 CAVEATS
End of Patch.