Merge pull request #110 from tomaka/relaxed-c-void

Be more relaxed with c_void
This commit is contained in:
tomaka 2016-04-25 13:38:02 +02:00
commit 3e776c8dd6
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
[package]
name = "cpal"
version = "0.2.10"
version = "0.2.11"
authors = ["Pierre Krieger <pierre.krieger1708@gmail.com>"]
description = "Cross-platform audio playing library in pure Rust."
repository = "https://github.com/tomaka/cpal"

View File

@ -353,7 +353,7 @@ impl<'a, T> Buffer<'a, T> {
unsafe {
loop {
let result = alsa::snd_pcm_writei(*channel,
self.buffer.as_ptr() as *const libc::c_void,
self.buffer.as_ptr() as *const _,
to_write);
if result == -32 {