]> 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:45:57 +0000 (10:45 -0600)
commitb45fb3a6ec107c9a36a0c7badeff881410d58d9d
tree83dadbe6b8b452b372cab7fac8c5eb9c27e737c2
parent637f6216c40202c60209f4f985433a568e02c9a8
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