chiark / gitweb /
codec.pyx.in: Cast arguments to `xfree'.
[mLib-python] / codec.pyx.in
index 37e02936b4df0269ae8a429516d42c334eea7182..2d54d0cdc5b52eb0e462d414345076232e8a1c27 100644 (file)
@@ -40,18 +40,18 @@ cdef class %CLASS%Encode:
     me.ctx.indent = NULL
   def __init__(me, indent = '\n', maxline = 72):
     if me.ctx.indent:
-      xfree(me.ctx.indent)
+      xfree(<void *>me.ctx.indent)
     me.ctx.indent = xstrdup(indent)
     me.ctx.maxline = maxline
   def __dealloc__(me):
     if me.ctx.indent:
-      xfree(me.ctx.indent)
+      xfree(<void *>me.ctx.indent)
   property indent:
     def __get__(me):
       return me.ctx.indent
     def __set__(me, indent):
       if me.ctx.indent:
-        xfree(me.ctx.indent)
+        xfree(<void *>me.ctx.indent)
       me.ctx.indent = xstrdup(indent)
   property maxline:
     def __get__(me):