Changeset: 591d1eb6a048 for MonetDB URL: https://dev.monetdb.org/hg/MonetDB/rev/591d1eb6a048 Modified Files: geom/monetdb5/geom_atoms.c Branch: default Log Message:
Improves wkbHash type cast handling diffs (12 lines): diff --git a/geom/monetdb5/geom_atoms.c b/geom/monetdb5/geom_atoms.c --- a/geom/monetdb5/geom_atoms.c +++ b/geom/monetdb5/geom_atoms.c @@ -96,7 +96,7 @@ wkbHASH(const void *W) BUN h = 0; for (i = 0; i < (w->len - 1); i += 2) { - unsigned char a = *(w->data + i), b = *(w->data + i + 1); + BUN a = (unsigned char) w->data[i], b = (unsigned char) w->data[i + 1]; h = (h << 3) ^ (h >> 11) ^ (h >> 17) ^ (b << 8) ^ a; } return h; _______________________________________________ checkin-list mailing list -- checkin-list@monetdb.org To unsubscribe send an email to checkin-list-le...@monetdb.org