From 9d335dffa46d4ff921b3d0b18b321c4c041ddc61 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Fri, 25 Apr 2014 17:02:18 +0600 Subject: Fix strict flags compilation error in box pack No need to check q >= 0 in quad_flag() since q is an unsigned int argument. --- source/blender/blenlib/intern/boxpack2d.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/blenlib/intern/boxpack2d.c b/source/blender/blenlib/intern/boxpack2d.c index c83e2fed8a7..a383a461c9d 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); } -- cgit v1.2.3