diff options
author | Chris Want <cwant@ualberta.ca> | 2005-12-27 00:43:35 +0300 |
---|---|---|
committer | Chris Want <cwant@ualberta.ca> | 2005-12-27 00:43:35 +0300 |
commit | b39465b7fb64b84ae3e2b3032b2c2e1195b59c96 (patch) | |
tree | 40f3a5349f269a810e20769af3de5238e914f41d /source/blender/imbuf/intern/tiff.c | |
parent | 6f10660f0c47a76bf8e620701a39e7697eac7654 (diff) |
Some compilers don't like it when you initialize the fields in a
struct using the values of variables during the declaration of
the struct.
Diffstat (limited to 'source/blender/imbuf/intern/tiff.c')
-rw-r--r-- | source/blender/imbuf/intern/tiff.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/imbuf/intern/tiff.c b/source/blender/imbuf/intern/tiff.c index 5b86a2c2dfa..616531b3a77 100644 --- a/source/blender/imbuf/intern/tiff.c +++ b/source/blender/imbuf/intern/tiff.c @@ -303,7 +303,7 @@ struct ImBuf *imb_loadtiff(unsigned char *mem, int size, int flags) { TIFF *image = NULL; struct ImBuf *ibuf = NULL; - struct ImbTIFFMemFile memFile = { mem, 0, size }; + struct ImbTIFFMemFile memFile; uint32 width, height; int bytesperpixel; int success; @@ -312,6 +312,10 @@ struct ImBuf *imb_loadtiff(unsigned char *mem, int size, int flags) uint32 pixel; unsigned char *to = NULL; + memFile.mem = mem; + memFile.offset = 0; + memFile.size = size; + /* check whether or not we have a TIFF file */ assert(size >= IMB_TIFF_NCB); if (imb_is_a_tiff(mem) == 0) |