guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#29132] [PATCH] system: vm: Use 2^32 - 1 as hash size.


From: Ludovic Courtès
Subject: [bug#29132] [PATCH] system: vm: Use 2^32 - 1 as hash size.
Date: Mon, 06 Nov 2017 09:41:09 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)

Mathieu Othacehe <address@hidden> skribis:

> Hey Ludo,
>
>> So I take it that you always get something in the range 0–2³²-1, no?
>
> Well I agree, but looking to hash code, we have :
>
> #define FUNC_NAME s_scm_hash
> {
>   unsigned long sz = scm_to_unsigned_integer (size, 1, ULONG_MAX);

Oh, got it.  Well, OK for the patch!

Thank you,
Ludo’.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]