Fix to bug 487: http://bugs.skysql.com/show_bug.cgi?id=487
Changed all arithmetic operations on raw void pointers to properly use uint8_t pointers instead.
This commit is contained in:
@ -87,7 +87,7 @@ SHARED_BUF *sbuf;
|
||||
}
|
||||
spinlock_init(&rval->gwbuf_lock);
|
||||
rval->start = sbuf->data;
|
||||
rval->end = rval->start + size;
|
||||
rval->end = (void*)((uint8_t*)rval->start + size);
|
||||
sbuf->refcount = 1;
|
||||
rval->sbuf = sbuf;
|
||||
rval->next = NULL;
|
||||
|
Reference in New Issue
Block a user