Skip to content
Browse files

Eliminate build warning for bdelta's Python library

  • Loading branch information...
1 parent 55c9b3f commit 1fbff0ad8c2987eecff2cef1be744a30df538fd6 @jjwhitney committed Nov 1, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/bdelta.pyx
3 src/bdelta.pyx
@@ -2,6 +2,7 @@ cdef extern from "bdelta.h":
ctypedef struct BDelta_Instance:
+ 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:
-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);

0 comments on commit 1fbff0a

Please sign in to comment.
Something went wrong with that request. Please try again.