summaryrefslogtreecommitdiffstats
path: root/lib/libcurses/cur_hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libcurses/cur_hash.c')
-rw-r--r--lib/libcurses/cur_hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libcurses/cur_hash.c b/lib/libcurses/cur_hash.c
index de6ab11..b358184 100644
--- a/lib/libcurses/cur_hash.c
+++ b/lib/libcurses/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;
}
OpenPOWER on IntegriCloud