diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2008-03-10 23:12:45 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2008-03-10 23:12:45 +0300 |
commit | 4ecf0fffafaf11ffe188d1938e837a4a477a4d2d (patch) | |
tree | 034789bf5b71b76edb8847d170062a4afb80a323 /source/blender/imbuf | |
parent | 55b05d66a61444c4f6a5fc82cf80f9bfb8ccb86d (diff) |
Fix for msvc compiler error in tiff saving.
Diffstat (limited to 'source/blender/imbuf')
-rw-r--r-- | source/blender/imbuf/intern/tiff.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |