Changeset: 79c9c932f0f1 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=79c9c932f0f1
Modified Files:
        gdk/gdk.h
Branch: headless
Log Message:

HASHloop_TYPE() need to call hash_##TYPE() rather than hash_lng()

found by optimized compilation that complained about
monetdb5/modules/atoms/str.c:1597:3: error: dereferencing type-punned pointer 
will break strict-aliasing rules
monetdb5/modules/atoms/str.c:1626:3: error: dereferencing type-punned pointer 
will break strict-aliasing rules


diffs (12 lines):

diff --git a/gdk/gdk.h b/gdk/gdk.h
--- a/gdk/gdk.h
+++ b/gdk/gdk.h
@@ -3091,7 +3091,7 @@
                if (ATOMcmp(h->type, v, BUNvar(bi, hb)) == 0)
 
 #define HASHloop_TYPE(bi,h,hb,v,TYPE)                                  \
-       for (hb = h->hash[hash_lng(h,v)]; hb != BUN_NONE; hb = h->link[hb]) \
+       for (hb = h->hash[hash_##TYPE(h,v)]; hb != BUN_NONE; hb = h->link[hb]) \
                if (simple_EQ(v, BUNloc(bi, hb), TYPE))
 
 #define HASHloop_bit(bi,h,hb,v) HASHloop_TYPE(bi,h,hb,v,bte)
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to