379 |
|
if (newhist == NULL) |
380 |
|
returnErr(TM_E_NOMEM); |
381 |
|
if (oldlen) { /* copy and free old */ |
382 |
< |
memcpy((MEM_PTR)newhist+(oldorig-horig), |
382 |
> |
memcpy((MEM_PTR)(newhist+(oldorig-horig)), |
383 |
|
(MEM_PTR)tms->histo, oldlen*sizeof(HIST_TYP)); |
384 |
|
free((MEM_PTR)tms->histo); |
385 |
|
} |
457 |
|
HIST_TYP *histo; |
458 |
|
float *cumf; |
459 |
|
int brt0, histlen; |
460 |
< |
HIST_TYP threshold, ceiling, trimmings; |
460 |
> |
HIST_TYP threshold, ceiling, trimmings, histot; |
461 |
|
double logLddyn, Ldmin, Ldavg, Lwavg, Tr, Lw, Ld; |
462 |
– |
HIST_TYP histot; |
462 |
|
double sum; |
463 |
|
double d; |
464 |
|
int i, j; |