Changeset: cd46018dd2d1 for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=cd46018dd2d1 Modified Files: gdk/gdk_group.c Branch: Oct2014 Log Message:
Use const. diffs (23 lines): diff --git a/gdk/gdk_group.c b/gdk/gdk_group.c --- a/gdk/gdk_group.c +++ b/gdk/gdk_group.c @@ -678,7 +678,8 @@ BATgroup_internal(BAT **groups, BAT **ex /* byte-sized values, use 256 entry array to keep * track of doled out group ids */ unsigned char *bgrps = GDKmalloc(256); - unsigned char v, *w = (unsigned char *) Tloc(b, BUNfirst(b)); + const unsigned char *w = (const unsigned char *) Tloc(b, BUNfirst(b)); + unsigned char v; memset(bgrps, 0xFF, 256); if (histo) memset(cnts, 0, maxgrps * sizeof(wrd)); @@ -701,7 +702,8 @@ BATgroup_internal(BAT **groups, BAT **ex /* short-sized values, use 65536 entry array to keep * track of doled out group ids */ unsigned short *sgrps = GDKmalloc(65536 * sizeof(short)); - unsigned short v, *w = (unsigned short *) Tloc(b, BUNfirst(b)); + const unsigned short *w = (const unsigned short *) Tloc(b, BUNfirst(b)); + unsigned short v; memset(sgrps, 0xFF, 65536 * sizeof(short)); if (histo) memset(cnts, 0, maxgrps * sizeof(wrd)); _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list