diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-05-15 03:21:51 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-05-15 03:21:51 +0000 |
commit | 92f76b2bc81feb6b436874e29ddd07b1b7ac876b (patch) | |
tree | 45e9c8d4371354f9d1d8449b2f3a74af93e30653 /dsp.c | |
parent | 7998612185e580fcf23995ed8220adc5ba214c08 (diff) |
correct some signed/unsigned issues found by GCC 4 (bug #4237)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5664 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'dsp.c')
-rwxr-xr-x | dsp.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; \ } \ } \ |