projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b974fbf
)
... and make it return the *right* value when it goes out of bounds.
author
Mark Eichin
<eichin@cygnus>
Tue, 14 Jul 1992 22:47:46 +0000
(22:47 +0000)
committer
Mark Eichin
<eichin@cygnus>
Tue, 14 Jul 1992 22:47:46 +0000
(22:47 +0000)
gprof/lookup.c
patch
|
blob
|
history
diff --git
a/gprof/lookup.c
b/gprof/lookup.c
index 1478faf6455b5da3b28e8cfb99fc4a9c505bcd9b..56ded0638cca938f8f1f942db96b3f276db1d6d1 100644
(file)
--- a/
gprof/lookup.c
+++ b/
gprof/lookup.c
@@
-69,7
+69,7
@@
nllookup( address )
printf("[nllookup] %d (%d) probes, fall off\n", probes, nname-1);
}
# endif
- return &nl[middle];
+ return &nl[middle
+1
];
}
fprintf( stderr , "[nllookup] binary search fails???\n" );
#ifdef DEBUG