Skip to content

Commit

Permalink
fix casts in gc
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlie Somerville committed Jun 2, 2012
1 parent 365daad commit ed25eca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vm/src/gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,11 +231,11 @@ NOINLINE static void js_gc_mark()
global_t* g;
while((intptr_t)ptrptr > (intptr_t)&stack_dummy) {
if(((intptr_t)*ptrptr & 3) == 0) {
intptr_t p = *ptrptr;
intptr_t p = (intptr_t)*ptrptr;
if(sizeof(intptr_t) == 8) {
p &= 0x7ffffffffffful;
}
alloc = allocs_lookup(p);
alloc = allocs_lookup((intptr_t*)p);
if(alloc) {
js_gc_mark_allocation(alloc);
}
Expand Down

0 comments on commit ed25eca

Please sign in to comment.