[Asterisk-cvs] asterisk/include/asterisk utils.h,1.47,1.48
kpfleming
kpfleming
Sat Oct 29 09:11:03 CDT 2005
Update of /usr/cvsroot/asterisk/include/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv7786/include/asterisk
Modified Files:
utils.h
Log Message:
do saturated math properly (thanks to the eagle-eyes of Tony Mountifield)
Index: utils.h
===================================================================
RCS file: /usr/cvsroot/asterisk/include/asterisk/utils.h,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -d -r1.47 -r1.48
--- utils.h 28 Oct 2005 21:35:55 -0000 1.47
+++ utils.h 29 Oct 2005 13:03:23 -0000 1.48
@@ -173,7 +173,7 @@
{
int res;
- res = *input + value;
+ res = (int) *input + value;
if (res > 32767)
*input = 32767;
else if (res < -32767)
@@ -186,7 +186,7 @@
{
int res;
- res = *input * value;
+ res = (int) *input * value;
if (res > 32767)
*input = 32767;
else if (res < -32767)
More information about the svn-commits
mailing list