diff options
author | Jay McCarthy <jay@racket-lang.org> | 2010-05-18 09:01:04 -0500 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2013-11-03 14:05:53 +0400 |
commit | ccbd73a98e81b484e69b6f2bdf0e3d3669cf2d98 (patch) | |
tree | 101b9997472e78a8218b180358f46d1cfe8d1bc1 | |
parent | 699974978285def08dda9d57c96649ba5af414f2 (diff) | |
download | bdwgc-ccbd73a98e81b484e69b6f2bdf0e3d3669cf2d98.tar.gz |
Attempt to remove 'warning: dereferencing type-punned pointer will break strict-aliasing rules'
-rw-r--r-- | new_hblk.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); } |