Re: [PATCH ext/Time/HiRes/HiRes.pm] Political Correctness
Simon Cozens [Fri, 26 Apr 2002 21:58:21 +0000 (22:58 +0100)]
Message-ID: <20020426205821.GB5855@netthink.co.uk>

p4raw-id: //depot/perl@16198

ext/Time/HiRes/HiRes.pm

index 0f2de3f..455775f 100644 (file)
@@ -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