diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-11-26 04:35:27 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-11-26 04:38:31 +0300 |
commit | d7708d135ebff7539b034df16158638b2e11e1c0 (patch) | |
tree | d4c9d0186876b80a5259631842631faab66e63cf /source/blender/blenlib/intern/BLI_ghash.c | |
parent | 77ac33db7b449011e3edaa25a24d0ee193b843c1 (diff) |
Partial revert of last commit
Keep index using the outer scope for GHASH iter macros,
while its often nice, in some cases to declare in the for loop,
it means you cant use as a counter after the loop exits, and in some cases signed/unsigned may matter.
API changes should really be split off in their own commits too.
Diffstat (limited to 'source/blender/blenlib/intern/BLI_ghash.c')
-rw-r--r-- | source/blender/blenlib/intern/BLI_ghash.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/blenlib/intern/BLI_ghash.c b/source/blender/blenlib/intern/BLI_ghash.c index 157ee1e37a0..7e6dabdffef 100644 --- a/source/blender/blenlib/intern/BLI_ghash.c +++ b/source/blender/blenlib/intern/BLI_ghash.c @@ -934,7 +934,7 @@ GHashIterator *BLI_ghashIterator_new(GHash *gh) * \param ghi The GHashIterator to initialize. * \param gh The GHash to iterate over. */ -unsigned BLI_ghashIterator_init(GHashIterator *ghi, GHash *gh) +void BLI_ghashIterator_init(GHashIterator *ghi, GHash *gh) { ghi->gh = gh; ghi->curEntry = NULL; @@ -947,7 +947,6 @@ unsigned BLI_ghashIterator_init(GHashIterator *ghi, GHash *gh) ghi->curEntry = ghi->gh->buckets[ghi->curBucket]; } while (!ghi->curEntry); } - return 0; } /** |