Skip to content

Commit

Permalink
Hrm, who knows what 'uint' is, but it seems to work sometimes? Wierd.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19876 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
lattner committed Jan 28, 2005
1 parent ad5fec1 commit 05dd08f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions runtime/libtrace/tracelib.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ const FULLEMPTY FULL = '\1';
// Use these as the successive sizes of the hash table.
#define NUMPRIMES 11
#define FIRSTENTRY 2
const uint PRIMES[NUMPRIMES] = { (1<<20)-3, (1<<21)-9, (1<<22)-3, (1<<23)-15,
const unsigned PRIMES[NUMPRIMES] = { (1<<20)-3, (1<<21)-9, (1<<22)-3, (1<<23)-15,
(1<<24)-3, (1<<25)-39, (1<<26)-5, (1<<27)-39,
(1<<28)-57, (1<<29)-3, (1<<30)-35 };
uint CurrentSizeEntry = FIRSTENTRY;
unsigned CurrentSizeEntry = FIRSTENTRY;

const uint MAX_NUM_PROBES = 4;
const unsigned MAX_NUM_PROBES = 4;

typedef struct PtrValueHashEntry_struct {
void* key;
Expand Down Expand Up @@ -170,7 +170,7 @@ DeleteAtIndex(PtrValueHashTable* ptrTable, Index index)
Index
FindIndex(PtrValueHashTable* ptrTable, void* ptr)
{
uint numProbes = 1;
unsigned numProbes = 1;
Index index = PointerHashFunc(ptr, ptrTable->capacity);
if (ptrTable->fullEmptyFlags[index] == FULL)
{
Expand Down

0 comments on commit 05dd08f

Please sign in to comment.