From c97eddb61e391942f53daca1a8f1cbb3cc021cfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=BCbinette=20=28Hubbe=29?= <hubbe@hubbe.net> Date: Wed, 4 Dec 1996 16:50:40 -0800 Subject: [PATCH] minor fix for _memory_usage() Rev: src/constants.c:1.5 --- src/constants.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/constants.c b/src/constants.c index 77fead603b..d177bf3e3a 100644 --- a/src/constants.c +++ b/src/constants.c @@ -147,9 +147,10 @@ void count_memory_in_constants(INT32 *num_, INT32 *size_) INT32 size=0, num=0; if(efun_hash) { - size+=sizeof(struct hash_table) + + size=sizeof(struct hash_table) + efun_hash->mask*sizeof(struct hash_entry)+ efun_hash->entries*sizeof(struct efun); + num=efun_hash->entries; } *num_=num; *size_=size; -- GitLab