Browse Source

mpi/: set the correct type for the return value of starpu_get_handle_interface_id()

Nathalie Furmento 13 years ago
parent
commit
feac858635
1 changed files with 2 additions and 2 deletions
  1. 2 2
      mpi/starpu_mpi_datatype.c

+ 2 - 2
mpi/starpu_mpi_datatype.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2009-2011  Université de Bordeaux 1
- * Copyright (C) 2010, 2011  Centre National de la Recherche Scientifique
+ * Copyright (C) 2010, 2011, 2012  Centre National de la Recherche Scientifique
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -133,7 +133,7 @@ static handle_to_datatype_func handle_to_datatype_funcs[STARPU_NINTERFACES_ID] =
 
 int starpu_mpi_handle_to_datatype(starpu_data_handle_t data_handle, MPI_Datatype *datatype)
 {
-	unsigned id = starpu_get_handle_interface_id(data_handle);
+	enum starpu_data_interface_id id = starpu_get_handle_interface_id(data_handle);
 
 	handle_to_datatype_func func = handle_to_datatype_funcs[id];