Changeset: f074842a02ca for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=f074842a02ca
Modified Files:
        monetdb5/modules/mal/remote.c
Branch: Jun2016
Log Message:

Use correct type.


diffs (27 lines):

diff --git a/monetdb5/modules/mal/remote.c b/monetdb5/modules/mal/remote.c
--- a/monetdb5/modules/mal/remote.c
+++ b/monetdb5/modules/mal/remote.c
@@ -679,12 +679,12 @@ str RMTput(Client cntxt, MalBlkPtr mb, M
                msg = createException(MAL, "remote.put", "unsupported type: 
%s", tpe);
                GDKfree(tpe);
                return msg;
-       } else if (isaBatType(type) && *(int*) value != 0) {
+       } else if (isaBatType(type) && *(bat*) value != 0) {
                BATiter bi;
                /* naive approach using bat.new() and bat.insert() calls */
                char *tail;
                char qbuf[BUFSIZ];
-               int bid;
+               bat bid;
                BAT *b = NULL;
                BUN p, q;
                str tailv;
@@ -692,7 +692,7 @@ str RMTput(Client cntxt, MalBlkPtr mb, M
 
                tail = getTypeIdentifier(getColumnType(type));
 
-               bid = *(int *)value;
+               bid = *(bat *)value;
                if (bid != 0) {
                        if ((b = BATdescriptor(bid)) == NULL){
                                MT_lock_unset(&c->lock);
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to