mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-22 04:43:50 +00:00
Convert casts to unions, to fix alignment issues on Solaris
(closes issue #12932) Reported by: snuffy Patches: bug_12932_20080627.diff uploaded by snuffy (license 35) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@125386 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -47,7 +47,7 @@ static int alawtoulaw_framein(struct ast_trans_pvt *pvt, struct ast_frame *f)
|
||||
{
|
||||
int x = f->samples;
|
||||
unsigned char *src = f->data.ptr;
|
||||
unsigned char *dst = (unsigned char *)pvt->outbuf + pvt->samples;
|
||||
unsigned char *dst = pvt->outbuf.uc + pvt->samples;
|
||||
|
||||
pvt->samples += x;
|
||||
pvt->datalen += x;
|
||||
@@ -63,7 +63,7 @@ static int ulawtoalaw_framein(struct ast_trans_pvt *pvt, struct ast_frame *f)
|
||||
{
|
||||
int x = f->samples;
|
||||
unsigned char *src = f->data.ptr;
|
||||
unsigned char *dst = (unsigned char *)pvt->outbuf + pvt->samples;
|
||||
unsigned char *dst = pvt->outbuf.uc + pvt->samples;
|
||||
|
||||
pvt->samples += x;
|
||||
pvt->datalen += x;
|
||||
|
Reference in New Issue
Block a user