dect
/
asterisk
Archived
13
0
Fork 0

Use SHRT_MAX instead of MAXSHORT.

These changes fix build issues I had with this module on FreeBSD.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@253536 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
russell 2010-03-20 11:33:30 +00:00
parent d6542dcc76
commit be1d1b35d7
1 changed files with 2 additions and 3 deletions

View File

@ -50,8 +50,7 @@
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include <values.h>
#ifdef __NetBSD__
#if defined(__NetBSD__) || defined(__FreeBSD__)
#include <pthread.h>
#include <signal.h>
#else
@ -4203,7 +4202,7 @@ static int drc_sample(int sample, float drc)
{
float neg;
float shallow, steep;
float max = MAXSHORT;
float max = SHRT_MAX;
neg = (sample < 0 ? -1 : 1);
steep = drc*sample;