fix void * arithmatic warning

This commit is contained in:
Seven Du 2013-03-28 17:36:01 +08:00
parent b8b7176086
commit fe1a758338
1 changed files with 1 additions and 1 deletions

View File

@ -845,7 +845,7 @@ static switch_bool_t write_displace_callback(switch_media_bug_t *bug, void *user
} else { } else {
st = switch_core_file_read(&dh->fh, rframe->data, &len); st = switch_core_file_read(&dh->fh, rframe->data, &len);
if (len < rframe->samples) { if (len < rframe->samples) {
memset(rframe->data + len * 2, 0, rframe->datalen - len * 2); memset((char *)rframe->data + len * 2, 0, rframe->datalen - len * 2);
} }
} }