[svn-commits] trunk r37300 - /trunk/formats/format_wav_gsm.c
svn-commits at lists.digium.com
svn-commits at lists.digium.com
Fri Jul 7 09:14:23 MST 2006
Author: russell
Date: Fri Jul 7 11:14:23 2006
New Revision: 37300
URL: http://svn.digium.com/view/asterisk?rev=37300&view=rev
Log:
pointer signedness warnings
Modified:
trunk/formats/format_wav_gsm.c
Modified: trunk/formats/format_wav_gsm.c
URL: http://svn.digium.com/view/asterisk/trunk/formats/format_wav_gsm.c?rev=37300&r1=37299&r2=37300&view=diff
==============================================================================
--- trunk/formats/format_wav_gsm.c (original)
+++ trunk/formats/format_wav_gsm.c Fri Jul 7 11:14:23 2006
@@ -428,7 +428,7 @@
s->fr.offset += GSM_FRAME_SIZE;
} else {
/* read and convert */
- char msdata[MSGSM_FRAME_SIZE];
+ unsigned char msdata[MSGSM_FRAME_SIZE];
int res;
if ((res = fread(msdata, 1, MSGSM_FRAME_SIZE, s->f)) != MSGSM_FRAME_SIZE) {
@@ -469,10 +469,10 @@
}
for (len = 0; len < f->datalen ; len += size) {
int res;
- char *src, msdata[MSGSM_FRAME_SIZE];
+ unsigned char *src, msdata[MSGSM_FRAME_SIZE];
if (fs->secondhalf) { /* second half of raw gsm to be converted */
memcpy(s->buf + GSM_FRAME_SIZE, f->data + len, GSM_FRAME_SIZE);
- conv66(s->buf, msdata);
+ conv66((unsigned char *) s->buf, msdata);
src = msdata;
fs->secondhalf = 0;
} else if (size == GSM_FRAME_SIZE) { /* first half of raw gsm */
More information about the svn-commits
mailing list