Commit: 9d335dffa46d4ff921b3d0b18b321c4c041ddc61
Author: Sergey Sharybin
Date:   Fri Apr 25 17:02:18 2014 +0600
https://developer.blender.org/rB9d335dffa46d4ff921b3d0b18b321c4c041ddc61

Fix strict flags compilation error in box pack

No need to check q >= 0 in quad_flag() since q is
an unsigned int argument.

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

M       source/blender/blenlib/intern/boxpack2d.c

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

diff --git a/source/blender/blenlib/intern/boxpack2d.c 
b/source/blender/blenlib/intern/boxpack2d.c
index c83e2fe..a383a46 100644
--- a/source/blender/blenlib/intern/boxpack2d.c
+++ b/source/blender/blenlib/intern/boxpack2d.c
@@ -87,7 +87,7 @@ typedef struct BoxVert {
 
 BLI_INLINE int quad_flag(unsigned int q)
 {
-       BLI_assert(q < 4 && q >= 0);
+       BLI_assert(q < 4);
        return (1 << q);
 }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to