Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Eliminate build warning for bdelta's Python library

  • Loading branch information...
commit 1fbff0ad8c2987eecff2cef1be744a30df538fd6 1 parent 55c9b3f
@jjwhitney authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  src/bdelta.pyx
View
3  src/bdelta.pyx
@@ -2,6 +2,7 @@ cdef extern from "bdelta.h":
ctypedef struct BDelta_Instance:
pass
+ ctypedef void *const_void_ptr "const void*"
ctypedef void *(*bdelta_readCallback)(void *handle, void *buf, unsigned place, unsigned num)
BDelta_Instance *bdelta_init_alg(unsigned data1_size, unsigned data2_size,
bdelta_readCallback cb, void *handle1, void *handle2,
@@ -27,7 +28,7 @@ cdef extern from "bdelta.h":
cdef enum CleanFlags:
BDELTA_REMOVE_OVERLAP
-cdef void *readCallback(void *handle, void *buf, unsigned place, unsigned num):
+cdef const_void_ptr readCallback(void *handle, void *buf, unsigned place, unsigned num):
cdef char *str = <bytes>handle
return str + ((place + 1) * 2);
Please sign in to comment.
Something went wrong with that request. Please try again.