Commit 4971b827da65526bbe3e6a2ee2d9ba182f056ac5
1 parent
420557e8
pointer arith fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1086 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
1 additions
and
1 deletions
oss.c
... | ... | @@ -403,7 +403,7 @@ void AUD_run (void) |
403 | 403 | |
404 | 404 | left = oss.bufsize - oss.rpos; |
405 | 405 | play = MIN (left, bytes); |
406 | - written = write (oss.fd, (void *) ((uint32_t) oss.buf + oss.rpos), play); | |
406 | + written = write (oss.fd, (uint8_t *)oss.buf + oss.rpos, play); | |
407 | 407 | |
408 | 408 | if (-1 == written) { |
409 | 409 | if (EAGAIN == errno || EINTR == errno) { | ... | ... |