From e09d2d36fb0a31cceca82833c1312ac789cb29f6 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Wed, 5 Jul 2017 18:46:47 +0100 Subject: Keep fz_store_hash to declared size. Could shrink this further, but we can't go below another 4 bytes so it's not worth it. --- source/fitz/colorspace.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source') diff --git a/source/fitz/colorspace.c b/source/fitz/colorspace.c index 92367ff8..d9136086 100644 --- a/source/fitz/colorspace.c +++ b/source/fitz/colorspace.c @@ -256,9 +256,8 @@ fz_make_hash_link_key(fz_context *ctx, fz_store_hash *hash, void *key_) fz_link_key *key = (fz_link_key *)key_; memcpy(hash->u.link.dst_md5, key->dst_md5, 16); memcpy(hash->u.link.src_md5, key->src_md5, 16); - hash->u.link.ri = key->rend.ri; - hash->u.link.bp = key->rend.bp; hash->u.link.alpha = key->alpha; + hash->u.link.ri_bp = (key->rend.ri<<1) | key->rend.bp; hash->u.link.depth = key->depth; hash->u.link.proof = key->proof; return 1; -- cgit v1.2.3