Commit 5c0ade92 authored by Mark Florisson's avatar Mark Florisson

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

--HG--
extra : transplant_source : o%16%9CO%21%92o/B%3E%E5%D9%F9%C35%A6%E3%23N%F8
parent 4d34d4e7
......@@ -913,7 +913,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