Commit 618f1bf8 authored by Stefan Behnel's avatar Stefan Behnel

Avoid C compiler warnings about implicit type conversions (on Windows, long != Py_ssize_t).

parent 08f33ef7
......@@ -37,7 +37,7 @@ cdef class PyrexScanner(Scanner):
cdef public unicode sy
cdef public systring # EncodedString
cdef long current_level(self)
cdef Py_ssize_t current_level(self)
#cpdef commentline(self, text)
#cpdef open_bracket_action(self, text)
#cpdef close_bracket_action(self, text)
......@@ -45,7 +45,7 @@ cdef class PyrexScanner(Scanner):
#cpdef begin_string_action(self, text)
#cpdef end_string_action(self, text)
#cpdef unclosed_string_action(self, text)
@cython.locals(current_level=cython.long, new_level=cython.long)
@cython.locals(current_level=Py_ssize_t, new_level=Py_ssize_t)
cpdef indentation_action(self, text)
#cpdef eof_action(self, text)
##cdef next(self)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment