]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_unistim: fix char type to have consistent behavior on ARM 65/4965/1
authorIgor Goncharovsky <igor.goncharovsky@gmail.com>
Thu, 16 Feb 2017 05:09:35 +0000 (08:09 +0300)
committerIgor Goncharovsky <igor.goncharovsky@gmail.com>
Thu, 16 Feb 2017 05:42:45 +0000 (23:42 -0600)
commit69ff58007f5bb440c7a1c483295bffd26f1d9cad
treea4f94e76322d6bcaecf2b0bceb4be6d1fd8e6685
parenta5e806de08648f31f41cb5de382466fb87149e3c
chan_unistim: fix char type to have consistent behavior on ARM

There is difference exists in behaviour of char type on x86 and ARM.
On x86 by default char variable type means signed char, but in ARM
unsigned char used. This make binary calculations and negative values
works wrong on ARM.

This patch change type of char variables used for store negative
values and binary calculations to signed char.

ASTERISK-26714

Change-Id: Id78716dee9568a58419d4ef63c038affc3dfc7ab
channels/chan_unistim.c