diff --git a/lib/asn1/hash.c b/lib/asn1/hash.c index 18cb7ebe3..537404d07 100644 --- a/lib/asn1/hash.c +++ b/lib/asn1/hash.c @@ -104,7 +104,7 @@ _hashtabdel(Hashtab * htab, void *ptr, int freep) if (h) { if (freep) free(h->ptr); - if (*(h->prev) = h->next) + if ((*(h->prev) = h->next)) h->next->prev = h->prev; free(h); return 0; @@ -167,7 +167,7 @@ hashjpw(const char *ss) for (; *s; ++s) { h = (h << TWELVE) + *s; - if (g = h & HIGH_BITS) + if ((g = h & HIGH_BITS)) h = (h ^ (g >> SEVENTYFIVE)) & ~HIGH_BITS; } return h;