Various little cleanups, many of them from a clang static analysis

This commit is contained in:
Steve Underwood
2014-05-02 23:32:33 +08:00
parent 317f4b1442
commit 28a9a40e37
75 changed files with 646 additions and 499 deletions

View File

@@ -75,7 +75,7 @@ SPAN_DECLARE(int16_t) noise(noise_state_t *s)
simple approx. leaves the signal about 0.35dB low. */
val = s->state << 1;
}
return saturate((val*s->rms) >> 10);
return saturate16((val*s->rms) >> 10);
}
/*- End of function --------------------------------------------------------*/