Permalink
Browse files

fix casts in gc

  • Loading branch information...
1 parent 365daad commit ed25eca6e851b8483b7df62784a2f8198e83ed18 @charliesome committed Jun 2, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 vm/src/gc.c
View
@@ -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);
}

0 comments on commit ed25eca

Please sign in to comment.