[Bf-blender-cvs] [dd3a297] multiview: From review: use !=0 when handling flags

Dalai Felinto noreply at git.blender.org
Wed Nov 26 19:45:11 CET 2014


Commit: dd3a2979a3cc203f25d28d1c183d2564886b31e0
Author: Dalai Felinto
Date:   Wed Nov 26 11:07:47 2014 -0200
Branches: multiview
https://developer.blender.org/rBdd3a2979a3cc203f25d28d1c183d2564886b31e0

>From review: use !=0 when handling flags

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

M	source/blender/imbuf/intern/util.c

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

diff --git a/source/blender/imbuf/intern/util.c b/source/blender/imbuf/intern/util.c
index 9835fa1..3fee668 100644
--- a/source/blender/imbuf/intern/util.c
+++ b/source/blender/imbuf/intern/util.c
@@ -446,7 +446,7 @@ bool IMB_isfloat(ImBuf *ibuf)
 
 	for (type = IMB_FILE_TYPES; type < IMB_FILE_TYPES_LAST; type++) {
 		if (type->ftype(type, ibuf)) {
-			return (type->flag & IM_FTYPE_FLOAT);
+			return (type->flag & IM_FTYPE_FLOAT) != 0;
 		}
 	}
 	return false;




More information about the Bf-blender-cvs mailing list