Changeset: 2bcfc9c83a70 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=2bcfc9c83a70
Modified Files:
        gdk/gdk_batop.c
Branch: unlock
Log Message:

make sure we copy int's not char's


diffs (12 lines):

diff --git a/gdk/gdk_batop.c b/gdk/gdk_batop.c
--- a/gdk/gdk_batop.c
+++ b/gdk/gdk_batop.c
@@ -550,7 +550,7 @@ append_msk_bat(BAT *b, BAT *n, struct ca
                        if (cnt >= 32) {
                                /* copy an integral number of words fast */
                                BUN nw = cnt / 32;
-                               memcpy(bp, np, nw);
+                               memcpy(bp, np, nw*sizeof(int));
                                bp += nw;
                                np += nw;
                                cnt %= 32;
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to