Fixed Windows build fo' realz.
authorDavid Anderson <dvander@alliedmods.net>
Sun Jul 11 18:06:06 2010 -0700 (2010-07-11)
changeset 3078a246d38d2c41
parent 3077 ca87a204ec82
child 3079 e823906b6e35
Fixed Windows build fo' realz.
sourcepawn/compiler/sp_symhash.c
     1.1 --- a/sourcepawn/compiler/sp_symhash.c	Sun Jul 11 17:45:35 2010 -0700
     1.2 +++ b/sourcepawn/compiler/sp_symhash.c	Sun Jul 11 18:06:06 2010 -0700
     1.3 @@ -2,9 +2,9 @@
     1.4  #include <stdlib.h>
     1.5  #include <string.h>
     1.6  #include <assert.h>
     1.7 +#include "sp_file_headers.h"
     1.8  #include "sc.h"
     1.9  #include "sp_symhash.h"
    1.10 -#include "sp_file_headers.h"
    1.11  
    1.12  SC_FUNC uint32_t
    1.13  NameHash(const char *str)
    1.14 @@ -187,7 +187,7 @@
    1.15  AddToHashTable(HashTable *ht, symbol *sym)
    1.16  {
    1.17      uint32_t bucket = sym->hash & ht->bucketmask;
    1.18 -    HashEntry **hep;
    1.19 +    HashEntry **hep, *he;
    1.20  
    1.21      hep = &ht->buckets[bucket];
    1.22      while (*hep) {
    1.23 @@ -195,7 +195,7 @@
    1.24          hep = &(*hep)->next;
    1.25      }
    1.26  
    1.27 -    HashEntry *he = (HashEntry *)malloc(sizeof(HashEntry));
    1.28 +    he = (HashEntry *)malloc(sizeof(HashEntry));
    1.29      if (!he)
    1.30        error(123);
    1.31      he->sym = sym;