From: Simon Cozens Date: Fri, 26 Apr 2002 21:58:21 +0000 (+0100) Subject: Re: [PATCH ext/Time/HiRes/HiRes.pm] Political Correctness X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=356234a565d5cebc44bfd50e8ab43233dcb90d95;p=p5sagit%2Fp5-mst-13.2.git Re: [PATCH ext/Time/HiRes/HiRes.pm] Political Correctness Message-ID: <20020426205821.GB5855@netthink.co.uk> p4raw-id: //depot/perl@16198 --- diff --git a/ext/Time/HiRes/HiRes.pm b/ext/Time/HiRes/HiRes.pm index 0f2de3f..455775f 100644 --- a/ext/Time/HiRes/HiRes.pm +++ b/ext/Time/HiRes/HiRes.pm @@ -282,7 +282,7 @@ Here is an example of using NVtime from C: 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