comparison src/glyphs-eimage.c @ 4682:648f4a0dac3e

Fix build problems on WIN32 platforms caused by the large image crash fix. See the thread on xemacs-patches@xemacs.org beginning with message <20a807210907081256y6c02f4bbv72d34c9f3c72ab02@mail.gmail.com>.
author Jerry James <james@xemacs.org>
date Mon, 24 Aug 2009 15:21:21 -0600
parents 6c6bfdb80a0c
children a9493cab536f
comparison
equal deleted inserted replaced
4681:64ac4337298b 4682:648f4a0dac3e
1335 TIFFGetField (unwind.tiff, TIFFTAG_IMAGEWIDTH, &width); 1335 TIFFGetField (unwind.tiff, TIFFTAG_IMAGEWIDTH, &width);
1336 TIFFGetField (unwind.tiff, TIFFTAG_IMAGELENGTH, &height); 1336 TIFFGetField (unwind.tiff, TIFFTAG_IMAGELENGTH, &height);
1337 pixels_sq = (UINT_64_BIT) width * (UINT_64_BIT) height; 1337 pixels_sq = (UINT_64_BIT) width * (UINT_64_BIT) height;
1338 if (pixels_sq >= 1 << 29) 1338 if (pixels_sq >= 1 << 29)
1339 signal_image_error ("TIFF image too large to instantiate", instantiator); 1339 signal_image_error ("TIFF image too large to instantiate", instantiator);
1340 unwind.eimage = xnew_binbytes (pixels_sq * 3); 1340 unwind.eimage = xnew_binbytes ((size_t) pixels_sq * 3);
1341 1341
1342 /* #### This is little more than proof-of-concept/function testing. 1342 /* #### This is little more than proof-of-concept/function testing.
1343 It needs to be reimplemented via scanline reads for both memory 1343 It needs to be reimplemented via scanline reads for both memory
1344 compactness. */ 1344 compactness. */
1345 raster = (uint32*) _TIFFmalloc ((tsize_t) (pixels_sq * sizeof (uint32))); 1345 raster = (uint32*) _TIFFmalloc ((tsize_t) (pixels_sq * sizeof (uint32)));