Fix r_vector.h for C++ build (#13890)

This commit is contained in:
Florian Märkl 2019-04-25 11:31:54 +02:00 committed by GitHub
parent 838f637ad2
commit 599bee4d1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -165,7 +165,7 @@ static inline void **r_pvector_index_ptr(RPVector *vec, size_t index) {
// same as r_pvector_index_ptr(<vec>, 0)
static inline void **r_pvector_data(RPVector *vec) {
return vec->v.a;
return (void **)vec->v.a;
}
// returns the respective pointer inside the vector if x is found or NULL otherwise.