error in heap_addref corrected
[cacao.git] / src / threads / green / threads.c
index 775548d270ed51a65a734104e6e222e6c098dcc2..55eeea3d69cbbcb800b4c97307d30812bef1f94e 100644 (file)
@@ -134,7 +134,7 @@ initThreads(u1 *stackbottom)
     /* Allocate a thread to be the main thread */
     liveThreads = the_main_thread = (thread*)builtin_new(loader_load(unicode_new_char("java/lang/Thread")));
     assert(the_main_thread != 0);
-       heap_addreference(&liveThreads);
+       heap_addreference((void **) &liveThreads);
     
     the_main_thread->PrivateInfo = 1;
     CONTEXT(the_main_thread).free = false;