diff options
-rwxr-xr-x | include/asterisk/utils.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asterisk/utils.h b/include/asterisk/utils.h index 9aa1a34c3..2f603a77a 100755 --- a/include/asterisk/utils.h +++ b/include/asterisk/utils.h @@ -173,7 +173,7 @@ static inline void ast_slinear_saturated_add(short *input, short value) { int res; - res = *input + value; + res = (int) *input + value; if (res > 32767) *input = 32767; else if (res < -32767) @@ -186,7 +186,7 @@ static inline void ast_slinear_saturated_multiply(short *input, short value) { int res; - res = *input * value; + res = (int) *input * value; if (res > 32767) *input = 32767; else if (res < -32767) |