From 4ecf0fffafaf11ffe188d1938e837a4a477a4d2d Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Mon, 10 Mar 2008 20:12:45 +0000 Subject: Fix for msvc compiler error in tiff saving. --- source/blender/imbuf/intern/tiff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/imbuf') diff --git a/source/blender/imbuf/intern/tiff.c b/source/blender/imbuf/intern/tiff.c index ecfc01e3701..dfa4e5831ba 100644 --- a/source/blender/imbuf/intern/tiff.c +++ b/source/blender/imbuf/intern/tiff.c @@ -435,7 +435,7 @@ struct ImBuf *imb_loadtiff(unsigned char *mem, int size, int flags) * @return: 1 if the function is successful, 0 on failure. */ -#define FTOUSHORT(f) ((f >= 1.0f-0.5f/65535)? 65535: (f <= 0.0f)? 0: (unsigned short)(f*65535.0f + 0.5f)) +#define FTOUSHORT(val) ((val >= 1.0f-0.5f/65535)? 65535: (val <= 0.0f)? 0: (unsigned short)(val*65535.0f + 0.5f)) short imb_savetiff(struct ImBuf *ibuf, char *name, int flags) { -- cgit v1.2.3