[Freeswitch-svn] [commit] r10628 - freeswitch/trunk/src/mod/applications/mod_vmd

FreeSWITCH SVN ericdc at freeswitch.org
Fri Dec 5 12:11:21 PST 2008


Author: ericdc
Date: Fri Dec  5 15:11:20 2008
New Revision: 10628

Log:
Fixed types.


Modified:
   freeswitch/trunk/src/mod/applications/mod_vmd/mod_vmd.cpp

Modified: freeswitch/trunk/src/mod/applications/mod_vmd/mod_vmd.cpp
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_vmd/mod_vmd.cpp	(original)
+++ freeswitch/trunk/src/mod/applications/mod_vmd/mod_vmd.cpp	Fri Dec  5 15:11:20 2008
@@ -218,8 +218,8 @@
     len = frame->samples * sizeof(int16_t);
     data = (int16_t *)frame->data;
     
-    for(max = abs(data[0]), i = 1; i < frame->samples; i++){
-		if(abs(data[i]) > max) max = abs(data[i]);
+    for(max = (int16_t)abs(data[0]), i = 1; i < frame->samples; i++){
+		if((int16_t)abs(data[i]) > max) max = (int16_t)abs(data[i]);
     }
 
 /*



More information about the Freeswitch-svn mailing list