aboutsummaryrefslogtreecommitdiff
path: root/gdb/bcache.c
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1996-04-06 17:40:03 +0000
committerFred Fish <fnf@specifix.com>1996-04-06 17:40:03 +0000
commita6b65627d4832109ddc4e4b3eb620607d8793a05 (patch)
tree3f7355aa93317246f5300acec1d2c99762a2592d /gdb/bcache.c
parenteae8aa302e9a76565bca1cf381e76125e1d9ff89 (diff)
downloadgdb-a6b65627d4832109ddc4e4b3eb620607d8793a05.zip
gdb-a6b65627d4832109ddc4e4b3eb620607d8793a05.tar.gz
gdb-a6b65627d4832109ddc4e4b3eb620607d8793a05.tar.bz2
* bcache.c (bcache): When size of chunk to cache is exactly equal to
BCACHE_MAXLENGTH, stash chunk as unique copy.
Diffstat (limited to 'gdb/bcache.c')
-rw-r--r--gdb/bcache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/bcache.c b/gdb/bcache.c
index c47893b..ae73c11 100644
--- a/gdb/bcache.c
+++ b/gdb/bcache.c
@@ -91,7 +91,7 @@ bcache (bytes, count, bcachep)
struct hashlink **linkpp;
struct hashlink ***hashtablepp;
- if (count > BCACHE_MAXLENGTH)
+ if (count >= BCACHE_MAXLENGTH)
{
/* Rare enough to just stash unique copies */
location = (void *) obstack_alloc (&bcachep->cache, count);