# HG changeset patch # User David Anderson # Date 1278896766 25200 # Node ID a246d38d2c41fec4dc8160fbfd0ffcd4a60ea990 # Parent ca87a204ec82254b24cd1651803a950e3573d7a4 Fixed Windows build fo' realz. diff -r ca87a204ec82 -r a246d38d2c41 sourcepawn/compiler/sp_symhash.c --- a/sourcepawn/compiler/sp_symhash.c Sun Jul 11 17:45:35 2010 -0700 +++ b/sourcepawn/compiler/sp_symhash.c Sun Jul 11 18:06:06 2010 -0700 @@ -2,9 +2,9 @@ #include #include #include +#include "sp_file_headers.h" #include "sc.h" #include "sp_symhash.h" -#include "sp_file_headers.h" SC_FUNC uint32_t NameHash(const char *str) @@ -187,7 +187,7 @@ AddToHashTable(HashTable *ht, symbol *sym) { uint32_t bucket = sym->hash & ht->bucketmask; - HashEntry **hep; + HashEntry **hep, *he; hep = &ht->buckets[bucket]; while (*hep) { @@ -195,7 +195,7 @@ hep = &(*hep)->next; } - HashEntry *he = (HashEntry *)malloc(sizeof(HashEntry)); + he = (HashEntry *)malloc(sizeof(HashEntry)); if (!he) error(123); he->sym = sym;