FILE *util_fopen(const char *filename, const char *mode)
{
-#ifdef WIN32
+#ifdef _MSC_VER
FILE *out;
if (fopen_s(&out, filename, mode) != 0)
return NULL;
*/
#ifdef __x86_64__
GMQCC_INLINE uint32_t util_hthashfunc(hash_table_t *ht, const char *key, register size_t seed) {
- const uint64_t mix = 0xC6A4A7935BD1E995;
+ const uint64_t mix = 0xC6A4A7935BD1E995UL;
const int rot = 47;
size_t size = strlen(key);
uint64_t hash = seed ^ (size - mix);
size_t size = strlen(key);
uint32_t hash = seed ^ size;
uint32_t alias = 0;
- const unsigned char *data = (const unsigned char*)ket;
+ const unsigned char *data = (const unsigned char*)key;
while (size >= 4) {
alias = *(uint32_t*)data;