Commit a186d6f7 authored by simonmar's avatar simonmar
Browse files

[project @ 2005-02-11 12:20:12 by simonmar]

Fix a bug: thunk_selector_depth was being incremented before checking
that we had reached the depth limit, and not decremented if we had
reached the limit.
parent 259d0765
...@@ -2117,10 +2117,10 @@ selector_loop: ...@@ -2117,10 +2117,10 @@ selector_loop:
// check that we don't recurse too much, re-using the // check that we don't recurse too much, re-using the
// depth bound also used in evacuate(). // depth bound also used in evacuate().
thunk_selector_depth++; if (thunk_selector_depth >= MAX_THUNK_SELECTOR_DEPTH) {
if (thunk_selector_depth > MAX_THUNK_SELECTOR_DEPTH) {
break; break;
} }
thunk_selector_depth++;
val = eval_thunk_selector(info->layout.selector_offset, val = eval_thunk_selector(info->layout.selector_offset,
(StgSelector *)selectee); (StgSelector *)selectee);
......
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