Use more appropriate casts

This commit is contained in:
James Myatt
2015-02-05 15:59:19 +00:00
parent bf32650c83
commit 18b3c49296
2 changed files with 4 additions and 4 deletions

View File

@@ -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 */