From b974fbff9ca9030dd18bbdf71da8d01a6169b0e9 Mon Sep 17 00:00:00 2001 From: Mark Eichin Date: Tue, 14 Jul 1992 22:33:02 +0000 Subject: [PATCH] leave fencepost condition *completely* open-ended. Closes 1286. --- gprof/lookup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gprof/lookup.c b/gprof/lookup.c index 1892101f0ac..1478faf6455 100644 --- a/gprof/lookup.c +++ b/gprof/lookup.c @@ -63,7 +63,7 @@ nllookup( address ) low = middle + 1; } } - if(nl[middle+1].value == address) { + if(nl[middle+1].value <= address) { # ifdef DEBUG if (debug & LOOKUPDEBUG ) { printf("[nllookup] %d (%d) probes, fall off\n", probes, nname-1); -- 2.30.2