Explorar o código

ncd: NCDInterpreter: cosmetic change

ambrop7 %!s(int64=13) %!d(string=hai) anos
pai
achega
e0c314c729
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      ncd/NCDInterpreter.c

+ 1 - 1
ncd/NCDInterpreter.c

@@ -613,7 +613,7 @@ void process_work_job_handler (struct process *p)
     int pstate = p->state;
     
     // process was up but is no longer?
-    if (pstate == PSTATE_UP && !(!process_have_child(p) && p->ap == p->num_statements)) {
+    if (pstate == PSTATE_UP && (p->ap < p->num_statements || process_have_child(p))) {
         // if we have module process, wait for its permission to continue
         if (p->module_process) {
             // set state waiting