comparison pytouhou/utils/lzss.pyx @ 540:53fa73932e9a

Fix warnings introduced in Cython 0.20, when more than one pointer is defined on the same line.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sat, 10 May 2014 22:20:22 +0200
parents 1b532e7dd521
children
comparison
equal deleted inserted replaced
539:d6d9a711253d 540:53fa73932e9a
26 unsigned int length_size=4, 26 unsigned int length_size=4,
27 unsigned int minimum_match_length=3): 27 unsigned int minimum_match_length=3):
28 cdef Py_ssize_t ptr, length 28 cdef Py_ssize_t ptr, length
29 cdef unsigned int dictionary_head 29 cdef unsigned int dictionary_head
30 cdef unsigned char byte 30 cdef unsigned char byte
31 cdef char *out_data, *dictionary 31 cdef char *out_data
32 cdef char *dictionary
32 33
33 out_data = <char*> malloc(size) 34 out_data = <char*> malloc(size)
34 dictionary = <char*> calloc(dictionary_size, 1) 35 dictionary = <char*> calloc(dictionary_size, 1)
35 dictionary_head, ptr = 1, 0 36 dictionary_head, ptr = 1, 0
36 37