Commit 9afff872 authored by Stefan Marr's avatar Stefan Marr

Added support for upper limit being double

Used for instance in the Fannkuch benchmark, and was supported before.
Signed-off-by: 's avatarStefan Marr <git@stefan-marr.de>
parent a3b12f70
......@@ -226,7 +226,10 @@ def _toDo(ivkbl, frame, interpreter):
context = block.get_context()
i = self.get_embedded_integer()
top = limit.get_embedded_integer()
if isinstance(limit, Double):
top = limit.get_embedded_double()
else:
top = limit.get_embedded_value()
while i <= top:
jitdriver.jit_merge_point(interpreter=interpreter,
block_method=block_method)
......
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