diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2017-05-22 17:13:33 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2017-05-22 17:43:46 +0300 |
commit | 81667b770ccdb41b3e63f5fdea75fe7da56b0d07 (patch) | |
tree | 6d808a79696ae73d19259892c3606dff2cb1b37d /source/blender/blenlib/intern/listbase.c | |
parent | f5a9f150dcd098f3e38b18b7ca1395893cc282a1 (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.c | 2 |
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) |