Mercurial > hg > xemacs-beta
diff 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 |
line wrap: on
line diff
--- a/src/glyphs-eimage.c Wed Aug 19 23:06:32 2009 +1000 +++ b/src/glyphs-eimage.c Mon Aug 24 15:21:21 2009 -0600 @@ -1337,7 +1337,7 @@ pixels_sq = (UINT_64_BIT) width * (UINT_64_BIT) height; if (pixels_sq >= 1 << 29) signal_image_error ("TIFF image too large to instantiate", instantiator); - unwind.eimage = xnew_binbytes (pixels_sq * 3); + unwind.eimage = xnew_binbytes ((size_t) pixels_sq * 3); /* #### This is little more than proof-of-concept/function testing. It needs to be reimplemented via scanline reads for both memory