Fix __glXDispatchInfo::dispatch_functions and
__glXDispatchInfo::size_table. dispatch_functions had the const in the wrong place, and size_table was declared as an array of two pointers to int_fast16_t instead of a pointer to an array of 2 int_fast16_t. cdecl to the rescue!
This commit is contained in:
parent
39a620d178
commit
7ae82b5fc8
|
@ -53,7 +53,7 @@ struct __glXDispatchInfo {
|
|||
* is the non-byte-swapped version, and the second element is the
|
||||
* byte-swapped version.
|
||||
*/
|
||||
void * const (*dispatch_functions)[2];
|
||||
const void *(*dispatch_functions)[2];
|
||||
|
||||
/**
|
||||
* Pointer to size validation data. This table is indexed with the same
|
||||
|
@ -70,7 +70,7 @@ struct __glXDispatchInfo {
|
|||
* If size checking is not to be performed on this type of protocol
|
||||
* data, this pointer will be \c NULL.
|
||||
*/
|
||||
const int_fast16_t * size_table[2];
|
||||
const int_fast16_t (*size_table)[2];
|
||||
|
||||
/**
|
||||
* Array of functions used to calculate the variable-size portion of
|
||||
|
|
Loading…
Reference in New Issue
Block a user