remove const from offsetToPointer in common_tools.h since PBO functions take non-const pointers
This commit is contained in:
parent
01e6f3c27c
commit
2f536fef59
|
@ -92,8 +92,8 @@ static inline jobject safeNewBuffer(JNIEnv *env, void *p, int size) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline const void *offsetToPointer(jint offset) {
|
static inline void *offsetToPointer(jint offset) {
|
||||||
return (const char *)NULL + offset;
|
return (char *)NULL + offset;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef void *(* ExtGetProcAddressPROC) (const char *func_name);
|
typedef void *(* ExtGetProcAddressPROC) (const char *func_name);
|
||||||
|
|
Loading…
Reference in New Issue