auich: Fix pointer arithmetic warning by adding a cast.

This commit is contained in:
Michael Lotz
2020-08-17 00:59:16 +02:00
parent c839d521c4
commit c367ace2ae
@@ -246,8 +246,8 @@ auich_stream_get_nth_buffer(auich_stream *stream, uint8 chan, uint8 buf,
sample_size = stream->b16 + 1;
frame_size = sample_size * stream->channels;
*buffer = stream->buffer->log_base + (buf * stream->bufframes * frame_size)
+ chan * sample_size;
*buffer = (char*)stream->buffer->log_base
+ (buf * stream->bufframes * frame_size) + chan * sample_size;
*stride = frame_size;
return B_OK;