mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 11:58:52 +00:00
correct some signed/unsigned issues found by GCC 4 (bug #4237)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5664 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
6
dsp.c
6
dsp.c
@@ -1303,7 +1303,7 @@ struct ast_frame *ast_dsp_process(struct ast_channel *chan, struct ast_dsp *dsp,
|
||||
int res;
|
||||
int digit;
|
||||
int x;
|
||||
unsigned short *shortdata;
|
||||
short *shortdata;
|
||||
unsigned char *odata;
|
||||
int len;
|
||||
int writeback = 0;
|
||||
@@ -1315,11 +1315,11 @@ struct ast_frame *ast_dsp_process(struct ast_channel *chan, struct ast_dsp *dsp,
|
||||
break; \
|
||||
case AST_FORMAT_ULAW: \
|
||||
for (x=0;x<len;x++) \
|
||||
odata[x] = AST_LIN2MU(shortdata[x]); \
|
||||
odata[x] = AST_LIN2MU((unsigned short)shortdata[x]); \
|
||||
break; \
|
||||
case AST_FORMAT_ALAW: \
|
||||
for (x=0;x<len;x++) \
|
||||
odata[x] = AST_LIN2A(shortdata[x]); \
|
||||
odata[x] = AST_LIN2A((unsigned short)shortdata[x]); \
|
||||
break; \
|
||||
} \
|
||||
} \
|
||||
|
Reference in New Issue
Block a user