Changeset: 397b2070b7cc for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=397b2070b7cc
Modified Files:
        gdk/gdk_group.c
Branch: Jul2017
Log Message:

Only call gc version if we have mutliple groups (and grps variable is set).


diffs (20 lines):

diff --git a/gdk/gdk_group.c b/gdk/gdk_group.c
--- a/gdk/gdk_group.c
+++ b/gdk/gdk_group.c
@@ -495,10 +495,12 @@ pop(oid x)
 #define GRP_create_partial_hash_table(INIT_0,INIT_1,HASH,COMP)         \
        do {                                                            \
                INIT_0;                                                 \
-               if (gc) {                                               \
-                       
GRP_create_partial_hash_table_core(INIT_1,HASH,COMP,assert(HASHgetlink(hs, hb) 
== HASHnil(hs) || HASHgetlink(hs, hb) < hb),GCGRPTST); \
-               } else if (grps) {                                      \
-                       GRP_create_partial_hash_table_core(INIT_1,HASH ^ 
(rev(grps[p]) >> bits),COMP,(void)0,GRPTST); \
+               if (grps) {                                             \
+                       if (gc) {                                       \
+                               
GRP_create_partial_hash_table_core(INIT_1,HASH,COMP,assert(HASHgetlink(hs, hb) 
== HASHnil(hs) || HASHgetlink(hs, hb) < hb),GCGRPTST); \
+                       } else {                                \
+                               GRP_create_partial_hash_table_core(INIT_1,HASH 
^ (rev(grps[p]) >> bits),COMP,(void)0,GRPTST); \
+                       }                                               \
                } else {                                                \
                        
GRP_create_partial_hash_table_core(INIT_1,HASH,COMP,(void)0,NOGRPTST); \
                }                                                       \
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to