Fix chan_modem_i4l (bug #3410)
[asterisk/asterisk.git] / include / asterisk / alaw.h
index ed05e46..9a0664d 100755 (executable)
@@ -29,6 +29,6 @@ extern unsigned char __ast_lin2a[8192];
 extern short __ast_alaw[256];
 
 #define AST_LIN2A(a) (__ast_lin2a[((unsigned short)(a)) >> 3])
-#define AST_ALAW(a) (__ast_alaw[(a)])
+#define AST_ALAW(a) (__ast_alaw[(int)(a)])
 
 #endif