Commit f7cb14ec authored by sletz's avatar sletz
Browse files

Fix for ticket #154.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3869 0c269be4-1314-0410-8aa9-9f06e86f4224
parent 85ae7ba5
......@@ -70,7 +70,7 @@ jack_ringbuffer_create (size_t sz)
int power_of_two;
jack_ringbuffer_t *rb;
if ((rb = malloc (sizeof (jack_ringbuffer_t))) == NULL) {
if ((rb = (jack_ringbuffer_t *) malloc (sizeof (jack_ringbuffer_t))) == NULL) {
return NULL;
}
......@@ -81,7 +81,7 @@ jack_ringbuffer_create (size_t sz)
rb->size_mask -= 1;
rb->write_ptr = 0;
rb->read_ptr = 0;
if ((rb->buf = malloc (rb->size)) == NULL) {
if ((rb->buf = (char *) malloc (rb->size)) == NULL) {
free (rb);
return NULL;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment