[Bf-blender-cvs] [fe52e64] master: Revert previous change after discussion with Campbell
Sergey Sharybin
noreply at git.blender.org
Fri Apr 25 13:17:00 CEST 2014
Commit: fe52e64f6b999329662afaf938c338c10d276a9f
Author: Sergey Sharybin
Date: Fri Apr 25 17:16:06 2014 +0600
https://developer.blender.org/rBfe52e64f6b999329662afaf938c338c10d276a9f
Revert previous change after discussion with Campbell
Let's just be really verbose and it some compiler gives
issues tell him NOT to do this.
We shouldn't really workaround compiles' idiocy..
===================================================================
M source/blender/blenlib/intern/boxpack2d.c
===================================================================
diff --git a/source/blender/blenlib/intern/boxpack2d.c b/source/blender/blenlib/intern/boxpack2d.c
index a383a46..c83e2fe 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);
+ BLI_assert(q < 4 && q >= 0);
return (1 << q);
}
More information about the Bf-blender-cvs
mailing list