Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2017-05-22 17:13:33 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2017-05-22 17:43:46 +0300
commit81667b770ccdb41b3e63f5fdea75fe7da56b0d07 (patch)
tree6d808a79696ae73d19259892c3606dff2cb1b37d /source/blender/blenlib/intern/listbase.c
parentf5a9f150dcd098f3e38b18b7ca1395893cc282a1 (diff)
Fix wrong comment in BLI_findstringindex (returns 0-based index!).
Diffstat (limited to 'source/blender/blenlib/intern/listbase.c')
-rw-r--r--source/blender/blenlib/intern/listbase.c2
1 files changed, 1 insertions, 1 deletions
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)