Skip to content
Snippets Groups Projects
Commit 24137871 authored by Russell Bryant's avatar Russell Bryant
Browse files

Use SHRT_MAX instead of MAXSHORT.

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@253536 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 743b1683
No related branches found
No related tags found
No related merge requests found
...@@ -50,8 +50,7 @@ ...@@ -50,8 +50,7 @@
   
ASTERISK_FILE_VERSION(__FILE__, "$Revision$") ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
   
#include <values.h> #if defined(__NetBSD__) || defined(__FreeBSD__)
#ifdef __NetBSD__
#include <pthread.h> #include <pthread.h>
#include <signal.h> #include <signal.h>
#else #else
...@@ -4203,7 +4202,7 @@ static int drc_sample(int sample, float drc) ...@@ -4203,7 +4202,7 @@ static int drc_sample(int sample, float drc)
{ {
float neg; float neg;
float shallow, steep; float shallow, steep;
float max = MAXSHORT; float max = SHRT_MAX;
neg = (sample < 0 ? -1 : 1); neg = (sample < 0 ? -1 : 1);
steep = drc*sample; steep = drc*sample;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment