[Bf-blender-cvs] [5884a0d] master: Correct last commit, picky type warnings

Campbell Barton noreply at git.blender.org
Sun Oct 4 06:17:29 CEST 2015


Commit: 5884a0d66e808631b82dd8c467b01f99d41e27cb
Author: Campbell Barton
Date:   Sun Oct 4 15:11:38 2015 +1100
Branches: master
https://developer.blender.org/rB5884a0d66e808631b82dd8c467b01f99d41e27cb

Correct last commit, picky type warnings

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

M	source/blender/blenlib/BLI_buffer.h

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

diff --git a/source/blender/blenlib/BLI_buffer.h b/source/blender/blenlib/BLI_buffer.h
index a9ecd3a..6ea9e76 100644
--- a/source/blender/blenlib/BLI_buffer.h
+++ b/source/blender/blenlib/BLI_buffer.h
@@ -64,7 +64,7 @@ enum {
 #define BLI_buffer_at(buffer_, type_, index_) ( \
 	(((type_ *)(buffer_)->data)[ \
 	        (BLI_assert(sizeof(type_) == (buffer_)->elem_size)), \
-	        (BLI_assert((int)index_ >= 0 && (size_t)index_ < (buffer_)->count)), \
+	        (BLI_assert((int)(index_) >= 0 && (size_t)(index_) < (buffer_)->count)), \
 	        index_]))
 
 #define BLI_buffer_array(buffer_, type_) ( \




More information about the Bf-blender-cvs mailing list