Use more appropriate casts
This commit is contained in:
@@ -415,7 +415,7 @@ unsigned long lh_char_hash(const void *k)
|
||||
#if defined __GNUC__
|
||||
__sync_val_compare_and_swap(&random_seed, -1, seed);
|
||||
#elif defined _MSC_VER
|
||||
InterlockedCompareExchange(&random_seed, seed, -1);
|
||||
InterlockedCompareExchange((LONG *)&random_seed, seed, -1);
|
||||
#else
|
||||
#warning "racy random seed initializtion if used by multiple threads"
|
||||
random_seed = seed; /* potentially racy */
|
||||
|
||||
Reference in New Issue
Block a user