[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [51153] trunk/blender/source/blender/ blenlib/BLI_utildefines.h: minor edit to type checking macro to avoid clangs static checker tagging the var as possibly NULL .
Campbell Barton
ideasman42 at gmail.com
Mon Oct 8 01:58:58 CEST 2012
Revision: 51153
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=51153
Author: campbellbarton
Date: 2012-10-07 23:58:57 +0000 (Sun, 07 Oct 2012)
Log Message:
-----------
minor edit to type checking macro to avoid clangs static checker tagging the var as possibly NULL.
Modified Paths:
--------------
trunk/blender/source/blender/blenlib/BLI_utildefines.h
Modified: trunk/blender/source/blender/blenlib/BLI_utildefines.h
===================================================================
--- trunk/blender/source/blender/blenlib/BLI_utildefines.h 2012-10-07 21:48:17 UTC (rev 51152)
+++ trunk/blender/source/blender/blenlib/BLI_utildefines.h 2012-10-07 23:58:57 UTC (rev 51153)
@@ -130,7 +130,7 @@
/* can be used in simple macros */
#define CHECK_TYPE_INLINE(val, type) \
- ((void)(((type *)0) == (val)))
+ ((void)(((type *)0) != (val)))
#ifndef SWAP
# define SWAP(type, a, b) { \
More information about the Bf-blender-cvs
mailing list