Commit 7cc79d38 authored by Mark Florisson's avatar Mark Florisson

cython.parallel: use integer ranks to find the rank type name

parent 8b1a4177
......@@ -926,7 +926,7 @@ class CIntType(CNumericType):
return src_type.is_int or src_type.is_enum or src_type is error_type
def invalid_value(self):
if rank_to_type_name[self.rank] == 'char':
if rank_to_type_name[int(self.rank)] == 'char':
return "'?'"
else:
# We do not really know the size of the type, so return
......
# mode: compile
from cython.parallel import *
cdef ssize_t i
with nogil, parallel():
for i in range(10):
pass
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