|
From: | Paul Eggert |
Subject: | Re: Fix records hashing (bug#27057, bug#26639) |
Date: | Wed, 24 May 2017 17:24:28 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.0 |
On 05/24/2017 10:40 AM, Lars Brinkhoff wrote:
Stefan Monnier wrote:- n = min (SXHASH_MAX_LEN, ASIZE (vec)); + n = min (SXHASH_MAX_LEN, hash & PSEUDOVECTOR_FLAG ? PVSIZE (vec) : hash);Is this right? I would have expected hash & PSEUDOVECTOR_FLAG ? PVSIZE (vec) : ASIZE (vec)
hash == ASIZE (vec) at that point, so they're equivalent. Arguably it's clearer to write it the way you expected.
[Prev in Thread] | Current Thread | [Next in Thread] |