nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit fa62b082435fe4b43499617bf3b2eee1c8d9362b
parent dd214c50f3a17ccb08f70cf2ed9495dbe7adf8fc
Author: Arun <engineerarun@gmail.com>
Date:   Tue,  3 Jan 2023 04:38:26 +0530

Merge pull request #1555 from N-R-K/icons_fix_ub

icons-hash: fix bitwise rotation
Diffstat:
Msrc/icons-hash.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/icons-hash.c b/src/icons-hash.c @@ -109,7 +109,7 @@ pcg(uint64_t *state) *state *= GOLDEN_RATIO_64; uint32_t r = (oldstate >> 59); uint32_t v = (oldstate ^ (oldstate >> 18)) >> 27; - return (v >> (32 - r)) | (v << r); + return (v >> (-r & 31)) | (v << r); } int