Browse Source

src/datawizard/interfaces/vector_filters.c: fix typo. loop from 0 to id-1

Nathalie Furmento 14 years ago
parent
commit
f32a02d56f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/datawizard/interfaces/vector_filters.c

+ 2 - 2
src/datawizard/interfaces/vector_filters.c

@@ -2,7 +2,7 @@
  *
  * Copyright (C) 2009, 2010  Université de Bordeaux 1
  * Copyright (C) 2010  Mehdi Juhoor <mjuhoor@gmail.com>
- * Copyright (C) 2010  Centre National de la Recherche Scientifique
+ * Copyright (C) 2010, 2011  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
@@ -107,7 +107,7 @@ void starpu_vector_list_filter_func(void *father_interface, void *child_interfac
 	if (vector_father->ptr) {
 	  /* compute the current position */
 	  unsigned i;
-	  for (i = 0; i <= id; i++) 
+	  for (i = 0; i < id; i++) 
 	    current_pos += length_tab[i];
 	  
 	  vector_child->ptr = vector_father->ptr + current_pos*elemsize;