GraphicsMagick: ipa_bmp_draw(): Print bmp.data as the pointer it...
GraphicsMagick Commits <[email protected]> Fri, 15 Sep 2023 11:29:53 -0500
| Newsgroups | gmane.comp.video.graphicsmagick.cvs |
|---|---|
| Message-ID | <mailman.995.1694795400.1370.graphicsmagick-commit@lists.sourceforge.net> |
changeset 7970e26cdef7 in /hg/GraphicsMagick details: http://hg.GraphicsMagick.org/hg/GraphicsMagick?cmd=changeset;node=7970e26cdef7 summary: ipa_bmp_draw(): Print bmp.data as the pointer it is rather than casting to a 'long' diffstat: ChangeLog | 3 +++ coders/wmf.c | 4 ++-- www/Changelog.html | 2 ++ 3 files changed, 7 insertions(+), 2 deletions(-) diffs (45 lines): diff -r 85068dab75e9 -r 7970e26cdef7 ChangeLog --- a/ChangeLog Fri Sep 15 10:23:27 2023 -0500 +++ b/ChangeLog Fri Sep 15 11:29:51 2023 -0500 @@ -1,5 +1,8 @@ 2023-09-15 Bob Friesenhahn <[email protected]> + * coders/wmf.c (ipa_bmp_draw): Print bmp.data as the pointer it is + rather than casting to a 'long'. + * coders/pnm.c (PNMReadThreads): Fix compiler warning regarding overflow. diff -r 85068dab75e9 -r 7970e26cdef7 coders/wmf.c --- a/coders/wmf.c Fri Sep 15 10:23:27 2023 -0500 +++ b/coders/wmf.c Fri Sep 15 11:29:51 2023 -0500 @@ -505,7 +505,7 @@ { (void) LogMagickEvent(CoderEvent,GetMagickModule(), "ipa_bmp_draw\n" - " bmp_draw->bmp.data = 0x%lx\n" + " bmp_draw->bmp.data = 0x%px\n" /* " registry id = %li\n" */ " pixel_width = %.4g\n" " pixel_height = %.4g\n" @@ -513,7 +513,7 @@ " bmp_draw->crop WxH = %ix%i\n" " bmp_draw->crop x,y = %i,%i\n" " image size WxH = %lux%lu", - (long) bmp_draw->bmp.data, + bmp_draw->bmp.data, /* id, */ bmp_draw->pixel_width, bmp_draw->pixel_height, diff -r 85068dab75e9 -r 7970e26cdef7 www/Changelog.html --- a/www/Changelog.html Fri Sep 15 10:23:27 2023 -0500 +++ b/www/Changelog.html Fri Sep 15 11:29:51 2023 -0500 @@ -40,6 +40,8 @@ <p>2023-09-15 Bob Friesenhahn <<a class="reference external" href="mailto:bfriesen%40simple.dallas.tx.us">bfriesen<span>@</span>simple<span>.</span>dallas<span>.</span>tx<span>.</span>us</a>></p> <blockquote> <ul class="simple"> +<li><p>coders/wmf.c (ipa_bmp_draw): Print bmp.data as the pointer it is +rather than casting to a 'long'.</p></li> <li><p>coders/pnm.c (PNMReadThreads): Fix compiler warning regarding overflow.</p></li> <li><p>coders/sun.c (WriteSUNImage): Test for sun_info.length overflow