Procházet zdrojové kódy

src/core/workers.h: fix return type for __starpu_worker_get_id_check, workerid's type is int

Nathalie Furmento před 8 roky
rodič
revize
021c0a5879
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      src/core/workers.h

+ 2 - 2
src/core/workers.h

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2009-2016  Université de Bordeaux
- * Copyright (C) 2010, 2011, 2012, 2013, 2014, 2016  CNRS
+ * Copyright (C) 2010, 2011, 2012, 2013, 2014, 2016, 2017  CNRS
  * Copyright (C) 2011  INRIA
  * Copyright (C) 2016  Uppsala University
  *
@@ -571,7 +571,7 @@ static inline int _starpu_worker_get_id(void)
 #define starpu_worker_get_id _starpu_worker_get_id
 
 /* Similar behaviour to starpu_worker_get_id() but fails when called from outside a worker */
-static inline unsigned __starpu_worker_get_id_check(const char *f, int l)
+static inline int __starpu_worker_get_id_check(const char *f, int l)
 {
 	(void) l;
 	(void) f;