]> git.ipfire.org Git - thirdparty/asterisk.git/commit
translate: Avoid absolute value on unsigned substraction.
authorAlexander Traud <pabstraud@compuserve.com>
Fri, 5 Jan 2018 11:51:47 +0000 (12:51 +0100)
committerCorey Farrell <git@cfware.com>
Tue, 9 Jan 2018 16:37:08 +0000 (11:37 -0500)
commit3a7d91725607b84274c068550096307f59e6b9f8
treee23aa2c6982447ca33310590a63ed1f45985f9e5
parent2f8ae566512897c97b3369bab3f07ff836f5ad1c
translate: Avoid absolute value on unsigned substraction.

ast_format_get_sample_rate(.) returns an unsigned type. The difference of a
substraction between two unsigned types does not get implicitly converted to a
signed type. Therefore, using abs(.) did not make sense.

ASTERISK-27549

Change-Id: Ib904d9ee0d46b6fdd1476fbc464fbbf813304017
main/translate.c