From 74e902c25755e88f363a46fd656a8084ef2ef5de Mon Sep 17 00:00:00 2001 From: Vitor Santos Costa Date: Fri, 27 Oct 2017 13:46:04 +0100 Subject: [PATCH] fix early reset of local variables --- C/heapgc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C/heapgc.c b/C/heapgc.c index 4ccc83f4a..badd63c7e 100644 --- a/C/heapgc.c +++ b/C/heapgc.c @@ -1737,7 +1737,7 @@ mark_trail(tr_fr_ptr trail_ptr, tr_fr_ptr trail_base, CELL *gc_H, choiceptr gc_B than its new binding is not accessible and we can reset it. Note we must use gc_H to avoid trouble with dangling variables in the heap */ - if (((hp < gc_H && hp >= H0) || (hp > (CELL *)gc_B && hp < LCL0) ) && !MARKED_PTR(hp)) { + if ((hp < gc_H && hp >= H0 ) && !MARKED_PTR(hp)) { /* perform early reset */ /* reset term to be a variable */ RESET_VARIABLE(hp);