Skip to content
Snippets Groups Projects
Commit cc15b7bb authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Fixed a probably sign bug.

Rev: src/gc.c:1.13
parent b1dbcb73
Branches
Tags
No related merge requests found
...@@ -89,14 +89,14 @@ static struct marker *new_marker(void) ...@@ -89,14 +89,14 @@ static struct marker *new_marker(void)
} }
static struct marker **hash=0; static struct marker **hash=0;
static int hashsize=0; static unsigned long hashsize=0;
static struct marker *getmark(void *a) static struct marker *getmark(void *a)
{ {
int hashval; int hashval;
struct marker *m; struct marker *m;
hashval=((long)a)%hashsize; hashval=((unsigned long)a)%hashsize;
for(m=hash[hashval];m;m=m->next) for(m=hash[hashval];m;m=m->next)
if(m->marked == a) if(m->marked == a)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment