From f9794431c3b96e115a94f2685a577ceddfa4f9ed Mon Sep 17 00:00:00 2001 From: rlar Date: Sun, 13 Mar 2016 22:04:41 +0100 Subject: [PATCH] xspice/icm/digital/d_osc/cfunc.mod, swallow a warning --- src/xspice/icm/digital/d_osc/cfunc.mod | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/xspice/icm/digital/d_osc/cfunc.mod b/src/xspice/icm/digital/d_osc/cfunc.mod index 451490fe2..a430ab52a 100644 --- a/src/xspice/icm/digital/d_osc/cfunc.mod +++ b/src/xspice/icm/digital/d_osc/cfunc.mod @@ -180,8 +180,7 @@ void cm_d_osc(ARGS) int i, /* generic loop counter index */ cntl_size, /* control array size */ - freq_size, /* frequency array size */ - int_cycle; /* integer number of cycles */ + freq_size; /* frequency array size */ @@ -343,12 +342,9 @@ void cm_d_osc(ARGS) /* calculate the instantaneous phase */ *phase = *phase_old + freq * (TIME - T(1)); - /* convert the phase to an integer */ - int_cycle = *phase_old; - /* dphase is the percent into the cycle for the period */ - dphase = *phase_old - int_cycle; + dphase = *phase_old - floor(*phase_old); /* Calculate the time variables and the output value