]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FSBUILD-295 Fix build of mod_freetdm in Windows
authorJeff Lenk <jeff@jefflenk.com>
Mon, 2 Aug 2010 14:01:01 +0000 (09:01 -0500)
committerJeff Lenk <jeff@jefflenk.com>
Mon, 2 Aug 2010 14:01:01 +0000 (09:01 -0500)
libs/freetdm/src/include/private/ftdm_core.h

index 99aad5ecc2e615704a2e99648ba0823ee5193135..8f149318b3afa5c10400c15a2e2b12a432712e14 100644 (file)
@@ -679,7 +679,7 @@ static __inline__ int16_t ftdm_saturated_add(int16_t sample1, int16_t sample2)
                addres = 32767;
        else if (addres < -32767)
                addres = -32767;
-       return addres;
+       return (int16_t)addres;
 }
 
 #ifdef __cplusplus