summaryrefslogtreecommitdiff
path: root/dsp.c
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2005-05-15 03:21:51 +0000
committerKevin P. Fleming <kpfleming@digium.com>2005-05-15 03:21:51 +0000
commit6cd4f9a8d394e34bdf8427ea6a597a156d8bae55 (patch)
tree45e9c8d4371354f9d1d8449b2f3a74af93e30653 /dsp.c
parent977fd5a157d150358099c6cfc7ca2b02ade4a9f1 (diff)
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
Diffstat (limited to 'dsp.c')
-rwxr-xr-xdsp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/dsp.c b/dsp.c
index 33917e5d0..7b8a0e2c5 100755
--- a/dsp.c
+++ b/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; \
} \
} \