diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-04-22 16:00:37 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-04-22 16:00:37 +0400 |
commit | 319036f2d57c3fd9463648c4187ed4a387b0ab33 (patch) | |
tree | 2543ec07564da5a8a4ab46407a831ef6c4a16a62 /source/blender/blenlib | |
parent | 1b106439209566e3cce548237916e16b7dab1277 (diff) |
fix [#35026] Curve build modifier
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/BLI_edgehash.h | 4 | ||||
-rw-r--r-- | source/blender/blenlib/intern/edgehash.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/blenlib/BLI_edgehash.h b/source/blender/blenlib/BLI_edgehash.h index 8d7d3b05653..ad71e610248 100644 --- a/source/blender/blenlib/BLI_edgehash.h +++ b/source/blender/blenlib/BLI_edgehash.h @@ -62,7 +62,7 @@ void *BLI_edgehash_lookup(EdgeHash *eh, unsigned int v0, unsigned int void **BLI_edgehash_lookup_p(EdgeHash *eh, unsigned int v0, unsigned int v1); /* Return boolean true/false if edge (v0,v1) in hash. */ -int BLI_edgehash_haskey(EdgeHash *eh, unsigned int v0, unsigned int v1); +bool BLI_edgehash_haskey(EdgeHash *eh, unsigned int v0, unsigned int v1); /* Return number of keys in hash. */ int BLI_edgehash_size(EdgeHash *eh); @@ -95,6 +95,6 @@ void BLI_edgehashIterator_setValue(EdgeHashIterator *ehi, void *v void BLI_edgehashIterator_step(EdgeHashIterator *ehi); /* Determine if an iterator is done. */ -int BLI_edgehashIterator_isDone(EdgeHashIterator *ehi); +bool BLI_edgehashIterator_isDone(EdgeHashIterator *ehi); #endif diff --git a/source/blender/blenlib/intern/edgehash.c b/source/blender/blenlib/intern/edgehash.c index 4fb48d19239..d75ada9e799 100644 --- a/source/blender/blenlib/intern/edgehash.c +++ b/source/blender/blenlib/intern/edgehash.c @@ -153,7 +153,7 @@ void *BLI_edgehash_lookup(EdgeHash *eh, unsigned int v0, unsigned int v1) return value_p ? *value_p : NULL; } -int BLI_edgehash_haskey(EdgeHash *eh, unsigned int v0, unsigned int v1) +bool BLI_edgehash_haskey(EdgeHash *eh, unsigned int v0, unsigned int v1) { return BLI_edgehash_lookup_p(eh, v0, v1) != NULL; } @@ -255,8 +255,8 @@ void BLI_edgehashIterator_step(EdgeHashIterator *ehi) } } } -int BLI_edgehashIterator_isDone(EdgeHashIterator *ehi) +bool BLI_edgehashIterator_isDone(EdgeHashIterator *ehi) { - return !ehi->curEntry; + return (ehi->curEntry == NULL); } |