Showing the changes to src (1 of 3 files). Show all
Unified · Split
| @@ -585,12 +585,13 @@ void add_residual_vuv(int targ_size, unsigned char *targ_residual, · 584 unmodified lines | ||
| 585 | 585 | void add_residual_pulse(int targ_size, unsigned char *targ_residual, |
| 586 | 586 | int unit_size, const unsigned char *unit_residual) |
| 587 | 587 | { |
| 588 | − int p,i,m; | |
| 588 | + int i,m; | |
| 589 | + long long p; | |
| 589 | 590 | /* Unit residual isn't a pointer its a number, the power for the |
| 590 | 591 | the sts, yes this is hackily casting the address to a number */ |
| 591 | 592 | |
| 592 | 593 | /* Need voiced and unvoiced model */ |
| 593 | − p = (int)unit_residual; /* I know the compiler will complain about this */ | |
| 594 | + p = (long long)unit_residual; /* I know the compiler will complain about this */ | |
| 594 | 595 | |
| 595 | 596 | if (p > 7000) /* voiced */ |
| 596 | 597 | { |