]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_unistim: fix char type to have consistent behavior on ARM 64/4964/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:36:52 +0000 (08:36 +0300)
commit7aa731c1c7793fda730181b19469015e84dde52f
tree7533a1b76f303a6dad68d90c6062b96814452502
parent73133d5354d5794a99f901532a6516857c3e4831
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