* new_hblk.c (GC_build_fl): Adjust "h" local variable cast type
when setting obj_link (to prevent compiler warning); reformat the
comment.
* tests/test.c (reverse_test_inner): Use proper type when touching
"b" and "c" local variables (to prevent compiler warning).
+2011-07-14 Ivan Maidanski <ivmai@mail.ru>
+
+ * new_hblk.c (GC_build_fl): Adjust "h" local variable cast type
+ when setting obj_link (to prevent compiler warning); reformat the
+ comment.
+ * tests/test.c (reverse_test_inner): Use proper type when touching
+ "b" and "c" local variables (to prevent compiler warning).
+
2011-07-05 Ivan Maidanski <ivmai@mail.ru>
* misc.c (GC_init): Use HOTTER_THAN (instead of STACK_GROWS_DOWN)
}
p -= sz; /* p now points to last object */
- /*
- * put p (which is now head of list of objects in *h) as first
- * pointer in the appropriate free list for this size.
- */
- obj_link(h -> hb_body) = list;
- return ((ptr_t)p);
+ /* Put p (which is now head of list of objects in *h) as first */
+ /* pointer in the appropriate free list for this size. */
+ *(ptr_t *)h = list;
+ return ((ptr_t)p);
}
/*
# ifndef THREADS
a = 0;
# endif
- *(volatile void **)&b = 0;
- *(volatile void **)&c = 0;
+ *(sexpr volatile *)&b = 0;
+ *(sexpr volatile *)&c = 0;
return 0;
}