Skip to content

Commit

Permalink
libvisual: fix accidental assignment instead of equality check
Browse files Browse the repository at this point in the history
  • Loading branch information
triallax committed May 30, 2024
1 parent 01b8705 commit 1b34a3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libvisual/libvisual/lv_hashmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ static int get_hash (VisHashmap *hashmap, void *key, VisHashmapKeyType keytype)
{
if (keytype == VISUAL_HASHMAP_KEY_TYPE_INTEGER)
return integer_hash (*((uint32_t *) key)) % hashmap->tablesize;
else if (keytype = VISUAL_HASHMAP_KEY_TYPE_STRING)
else if (keytype == VISUAL_HASHMAP_KEY_TYPE_STRING)
return string_hash ((char *) key) % hashmap->tablesize;

return 0;
Expand Down

0 comments on commit 1b34a3a

Please sign in to comment.