On Wed, 2006-10-04 at 17:15 -0400, Lobsingerp,Peter [CIS] wrote:

> I have tinkered with it and the code bellow works properly, although
> it should be equivalent to the above code. The only modification is
> holding the result of av_shift(Timeseries) in an intermediate pointer.

SvNV is a macro.  Its definition in sv.h is:

#define SvNV(sv) (SvNOK(sv) ? SvNVX(sv) : sv_2nv(sv))

So it evaluates its argument twice.

Also, are you sure you want to use the destructive av_shift instead of
the non-destructive av_fetch?

-- 
Bye,
-Torsten

Reply via email to