Commit 546765d8 authored by Stefan Behnel's avatar Stefan Behnel

Fix division-by-zero crash in tests when the C ompiler discards the...

Fix division-by-zero crash in tests when the C ompiler discards the computational body of a Cython coroutine.
parent cdad82d0
......@@ -126,6 +126,7 @@ async def cy_coro(int n):
n //= 2
else:
n = 3*n+1
x = <object> n # make sure the computation does not get discarded
@cython.binding(True)
......
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