]> granicus.if.org Git - gc/commitdiff
Attempt to remove 'warning: dereferencing type-punned pointer will break strict-alias...
authorJay McCarthy <jay@racket-lang.org>
Tue, 18 May 2010 14:01:04 +0000 (09:01 -0500)
committerIvan Maidanski <ivmai@mail.ru>
Sun, 3 Nov 2013 10:05:53 +0000 (14:05 +0400)
new_hblk.c

index c216e9f611e71b7fb4516e3766e37f1fabb957d1..9d6810e45c76ffb7a57a99fbf40d837c961227d0 100644 (file)
@@ -164,7 +164,8 @@ ptr_t GC_build_fl(struct hblk *h, size_t sz, GC_bool clear, ptr_t list)
    * 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;
+         word *tmp = (word *)h->hb_body;
+      obj_link(tmp) = list;
       return ((ptr_t)p);
 }