diff options
Diffstat (limited to 'sms/tables.c')
-rw-r--r-- | sms/tables.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sms/tables.c b/sms/tables.c index 4366695..1802952 100644 --- a/sms/tables.c +++ b/sms/tables.c @@ -45,7 +45,7 @@ int sms_prepSine (int nTableSize) register int i; sfloat fTheta; - if((sms_tab_sine = (sfloat *)malloc(nTableSize*sizeof(float))) == 0) + if((sms_tab_sine = (sfloat *)malloc(nTableSize*sizeof(sfloat))) == 0) return (SMS_MALLOC); fSineScale = (sfloat)(TWO_PI) / (sfloat)(nTableSize - 1); fSineIncr = 1.0 / fSineScale; @@ -110,7 +110,7 @@ int sms_prepSinc (int nTableSize) sfloat fTheta = -4.0 * TWO_PI / N; sfloat fThetaIncr = (8.0 * TWO_PI / N) / (nTableSize); - if((sms_tab_sinc = (sfloat *) calloc (nTableSize, sizeof(float))) == 0) + if((sms_tab_sinc = (sfloat *) calloc (nTableSize, sizeof(sfloat))) == 0) return (SMS_MALLOC); for(i = 0; i < nTableSize; i++) |