Skip to content

Commit

Permalink
Tweak a define.
Browse files Browse the repository at this point in the history
  • Loading branch information
WayneD committed Sep 14, 2022
1 parent 8b1b81e commit f3f5d84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hashtable.c
Expand Up @@ -351,7 +351,7 @@ void *hashtable_find(struct hashtable *tbl, int64 key, void *data_when_new)
*/

#define NON_ZERO_32(x) ((x) ? (x) : (uint32_t)1)
#define NON_ZERO_64(x, y) ((x) || (y) ? ((int64)(x) << 32) | (y) : (int64)1)
#define NON_ZERO_64(x, y) ((x) || (y) ? (y) | (int64)(x) << 32 | (y) : (int64)1)

uint32_t hashlittle(const void *key, size_t length)
{
Expand Down

0 comments on commit f3f5d84

Please sign in to comment.