Browse Source

small fix

Andra Hugo 13 years ago
parent
commit
f3127594e6
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/core/sched_ctx.c

+ 2 - 0
src/core/sched_ctx.c

@@ -664,8 +664,10 @@ unsigned starpu_worker_belongs_to_sched_ctx(int workerid, unsigned sched_ctx_id)
 	struct _starpu_worker *worker = _starpu_get_worker_struct(workerid);
 	struct _starpu_worker *worker = _starpu_get_worker_struct(workerid);
 	unsigned i;
 	unsigned i;
 	for(i = 0; i < STARPU_NMAX_SCHED_CTXS; i++)
 	for(i = 0; i < STARPU_NMAX_SCHED_CTXS; i++)
+	{
 		if(worker->sched_ctx[i] && worker->sched_ctx[i]->id == sched_ctx_id)
 		if(worker->sched_ctx[i] && worker->sched_ctx[i]->id == sched_ctx_id)
 			return 1;
 			return 1;
+	}
 	return 0;
 	return 0;
 }
 }