[Bf-blender-cvs] [81667b770cc] master: Fix wrong comment in BLI_findstringindex (returns 0-based index!).

Bastien Montagne noreply at git.blender.org
Mon May 22 16:49:34 CEST 2017


Commit: 81667b770ccdb41b3e63f5fdea75fe7da56b0d07
Author: Bastien Montagne
Date:   Mon May 22 16:13:33 2017 +0200
Branches: master
https://developer.blender.org/rB81667b770ccdb41b3e63f5fdea75fe7da56b0d07

Fix wrong comment in BLI_findstringindex (returns 0-based index!).

===================================================================

M	source/blender/blenlib/intern/listbase.c

===================================================================

diff --git a/source/blender/blenlib/intern/listbase.c b/source/blender/blenlib/intern/listbase.c
index 6cb7b7d8e3e..46dcee48eda 100644
--- a/source/blender/blenlib/intern/listbase.c
+++ b/source/blender/blenlib/intern/listbase.c
@@ -664,7 +664,7 @@ void *BLI_rfindptr(const ListBase *listbase, const void *ptr, const int offset)
 }
 
 /**
- * Returns the 1-based index of the first element of listbase which contains the specified
+ * Returns the 0-based index of the first element of listbase which contains the specified
  * null-terminated string at the specified offset, or -1 if not found.
  */
 int BLI_findstringindex(const ListBase *listbase, const char *id, const int offset)




More information about the Bf-blender-cvs mailing list