diff options
author | Tor Andersson <tor@ghostscript.com> | 2010-07-16 10:21:09 +0000 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2010-07-16 10:21:09 +0000 |
commit | 36aad51f7c3e65ea0ebad3683e96440bb9282177 (patch) | |
tree | 7064a0ff42177bc87ca85dfd126254cbff5401e6 /fitz/base_hash.c | |
parent | 8e2e75a198e93d27b35086e04e72e1c753e2f79e (diff) | |
download | mupdf-36aad51f7c3e65ea0ebad3683e96440bb9282177.tar.xz |
Fix harmless typo in hash table.
Diffstat (limited to 'fitz/base_hash.c')
-rw-r--r-- | fitz/base_hash.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/fitz/base_hash.c b/fitz/base_hash.c index b5423eb3..b0dd12fc 100644 --- a/fitz/base_hash.c +++ b/fitz/base_hash.c @@ -131,7 +131,7 @@ fz_hashfind(fz_hashtable *table, void *key) if (!ents[pos].val) return nil; - if (memcmp(key, &ents[pos].key, table->keylen) == 0) + if (memcmp(key, ents[pos].key, table->keylen) == 0) return ents[pos].val; pos = (pos + 1) % size; @@ -164,7 +164,7 @@ fz_hashinsert(fz_hashtable *table, void *key, void *val) return; } - if (memcmp(key, &ents[pos].key, table->keylen) == 0) + if (memcmp(key, ents[pos].key, table->keylen) == 0) fz_warn("assert: overwrite hash slot"); pos = (pos + 1) % size; @@ -187,7 +187,7 @@ fz_hashremove(fz_hashtable *table, void *key) return; } - if (memcmp(key, &ents[pos].key, table->keylen) == 0) + if (memcmp(key, ents[pos].key, table->keylen) == 0) { ents[pos].val = nil; @@ -238,4 +238,3 @@ fz_debughash(fz_hashtable *table) } } } - |