diff options
Diffstat (limited to 'lib/libocurses/cur_hash.c')
-rw-r--r-- | lib/libocurses/cur_hash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libocurses/cur_hash.c b/lib/libocurses/cur_hash.c index ed47fe37333..b3b84ba54ed 100644 --- a/lib/libocurses/cur_hash.c +++ b/lib/libocurses/cur_hash.c @@ -52,7 +52,7 @@ __hash(s, len) i = 0; while (i < len) { h = (h << 4) + s[i]; - if (g = h & 0xf0000000) { + if ((g = h & 0xf0000000)) { h = h ^ (g >> 24); h = h ^ g; } |