nasty bug
[IRC.git] / Robust / src / Runtime / task.c
index 538612730a3bedfd58c0e9a383f5eb99ae59d78a..52f8bcb0482b5143eff4f4bafc7f25fd20b43a8f 100644 (file)
@@ -770,8 +770,8 @@ void enqueueoptional(struct ___Object___ * currobj, int numfailedfses, int * fai
              totallength+=otd->numenterflags; //1 is to store the lengths
            }
            pw=currtask->descriptorarray[currindex]->queue;
-           enterflags=RUNMALLOC((totallength+numenterflags)*sizeof(int));
            numenterflags=j-start;
+           enterflags=RUNMALLOC((totallength+numenterflags)*sizeof(int));
 
            offset=0;
            for(start; start<j; start++) {
@@ -1200,7 +1200,7 @@ parameterpresent:
          }
          /* Actually call task */
 #ifdef PRECISE_GC
-                                                   ((int *)taskpointerarray)[0]=currtpd->numParameters;
+                                                               ((int *)taskpointerarray)[0]=currtpd->numParameters;
          taskpointerarray[1]=NULL;
 #endif
 #ifdef OPTIONAL