Changeset: 148bbe6b23f0 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=148bbe6b23f0
Modified Files:
        monetdb5/modules/kernel/group.mx
Branch: Apr2011
Log Message:

minor code cosmetics


diffs (17 lines):

diff --git a/monetdb5/modules/kernel/group.mx b/monetdb5/modules/kernel/group.mx
--- a/monetdb5/modules/kernel/group.mx
+++ b/monetdb5/modules/kernel/group.mx
@@ -306,11 +306,11 @@
 #endif
 #define HASH_bte(p) ((BUN) (*(unsigned char*) (p)))
 #define HASH_sht(p) ((BUN) (*(unsigned short*) (p)))
-#define HASH_int(p) ((BUN) *(unsigned int*) (p))
+#define HASH_int(p) ((BUN) (*(unsigned int*) (p)))
 #if SIZEOF_BUN == SIZEOF_LNG
 #define HASH_lng(p) ((BUN) (*(BUN *) (p)))
 #else
-#define HASH_lng(p) ((BUN)(((unsigned int*)(p))[0]^((unsigned int*)(p))[1]))
+#define HASH_lng(p) ((BUN) (((unsigned int*)(p))[0]^((unsigned int*)(p))[1]))
 #endif
 #define HASH_str_hv(p) (((BUN *) (p))[-1])
 #define HASH_any(p) ((*hashfcn)(p))
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to