Changeset: 3cb5f07356b1 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/3cb5f07356b1
Modified Files:
        monetdb5/mal/mal_runtime.c
        monetdb5/mal/mal_runtime.h
Branch: scatter
Log Message:

revert unnecessary cast to lng


diffs (33 lines):

diff --git a/monetdb5/mal/mal_runtime.c b/monetdb5/mal/mal_runtime.c
--- a/monetdb5/mal/mal_runtime.c
+++ b/monetdb5/mal/mal_runtime.c
@@ -271,7 +271,7 @@ runtimeProfileInit(Client cntxt, MalBlkP
                QRYqueue[qhead].username = GDKstrdup(cntxt->username);
        QRYqueue[qhead].idx = cntxt->idx;
        /* give the MB upperbound by addition of 1 MB */
-       QRYqueue[qhead].memory = 1 + (lng) (stk->memory / 
LL_CONSTANT(1048576)); /* Convert to MB */
+       QRYqueue[qhead].memory = 1 + (int) (stk->memory / 
LL_CONSTANT(1048576)); /* Convert to MB */
        QRYqueue[qhead].workers = (int) 1;      /* this is the first one */
        QRYqueue[qhead].status = "running";
        QRYqueue[qhead].cntxt = cntxt;
@@ -306,7 +306,7 @@ runtimeProfileFinish(Client cntxt, MalBl
                        QRYqueue[i].finished = time(0);
                        QRYqueue[i].workers = mb->workers;
                        /* give the MB upperbound by addition of 1 MB */
-                       QRYqueue[i].memory = 1 + (lng)(mb->memory / 
LL_CONSTANT(1048576));
+                       QRYqueue[i].memory = 1 + (int)(mb->memory / 
LL_CONSTANT(1048576));
                        QRYqueue[i].cntxt = 0;
                        QRYqueue[i].stk = 0;
                        QRYqueue[i].mb = 0;
diff --git a/monetdb5/mal/mal_runtime.h b/monetdb5/mal/mal_runtime.h
--- a/monetdb5/mal/mal_runtime.h
+++ b/monetdb5/mal/mal_runtime.h
@@ -34,7 +34,7 @@ typedef struct QRYQUEUE{
        str username;
        int idx;
        int workers;
-       lng memory;
+       int memory;
        lng ticks;
        time_t start;
        time_t finished;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to