GraphicsMagick: Fix Visual Studio 17.4.3 issue with floating poi...

GraphicsMagick Commits <[email protected]>
Newsgroups gmane.comp.video.graphicsmagick.cvs
Message-ID <mailman.36425.1672010946.1567.graphicsmagick-commit@lists.sourceforge.net>
changeset 4c6cc25c174a in /hg/GraphicsMagick
details: http://hg.GraphicsMagick.org/hg/GraphicsMagick?cmd=changeset;node=4c6cc25c174a
summary: Fix Visual Studio 17.4.3 issue with floating point /precise mode.

diffstat:

 ChangeLog          |  10 ++++++++++
 NEWS.txt           |   2 +-
 magick/enhance.c   |   2 +-
 magick/gem.c       |   2 +-
 www/Changelog.html |  23 +++++++++++++++++++++++
 www/NEWS.html      |   2 +-
 6 files changed, 37 insertions(+), 4 deletions(-)

diffs (98 lines):

diff -r 0b3d574d4ad5 -r 4c6cc25c174a ChangeLog
--- a/ChangeLog	Mon Dec 26 00:03:56 2022 +0100
+++ b/ChangeLog	Sun Dec 25 17:28:50 2022 -0600
@@ -1,3 +1,13 @@
+2022-12-25  Bob Friesenhahn  <[email protected]>
+
+	* magick/gem.c (Contrast): Visual Studio 17.4.3 does not like
+	initializing a static constant with "0.5+MagickEpsilon" in
+	/precise mode.
+
+	* magick/enhance.c (ContrastImagePixels): Visual Studio 17.4.3
+	does not like initializing a static constant with
+	"0.5+MagickEpsilon" in /precise mode.
+
 2022-12-25 Fojtik Jaroslav  <[email protected]>
 
 	* webp/src/webp/types.h Need to include inttypes.h
diff -r 0b3d574d4ad5 -r 4c6cc25c174a NEWS.txt
--- a/NEWS.txt	Mon Dec 26 00:03:56 2022 +0100
+++ b/NEWS.txt	Sun Dec 25 17:28:50 2022 -0600
@@ -157,7 +157,7 @@
 
 Windows Delegate Updates/Additions:
 
-* Update bundled libjasper to version 1.900.16.
+* Update bundled libjasper to version 1.900.26.
 
 * Update bundled libjpeg to version 9e.
 
diff -r 0b3d574d4ad5 -r 4c6cc25c174a magick/enhance.c
--- a/magick/enhance.c	Mon Dec 26 00:03:56 2022 +0100
+++ b/magick/enhance.c	Sun Dec 25 17:28:50 2022 -0600
@@ -169,7 +169,7 @@
     sign = *((const double *) immutable_data);
 
   static const double
-    alpha=0.5+MagickEpsilon;
+    alpha=0.50000000000099997787827987849595956504344940185546875; /* 0.5+MagickEpsilon */
 
   register long
     i;
diff -r 0b3d574d4ad5 -r 4c6cc25c174a magick/gem.c
--- a/magick/gem.c	Mon Dec 26 00:03:56 2022 +0100
+++ b/magick/gem.c	Sun Dec 25 17:28:50 2022 -0600
@@ -70,7 +70,7 @@
   Quantum *blue)
 {
   static const double
-    alpha=0.5+MagickEpsilon;
+    alpha=0.50000000000099997787827987849595956504344940185546875; /* 0.5+MagickEpsilon */
 
   double
     brightness,
diff -r 0b3d574d4ad5 -r 4c6cc25c174a www/Changelog.html
--- a/www/Changelog.html	Mon Dec 26 00:03:56 2022 +0100
+++ b/www/Changelog.html	Sun Dec 25 17:28:50 2022 -0600
@@ -40,6 +40,29 @@
 <p>2022-12-25  Bob Friesenhahn  &lt;<a class="reference external" href="mailto:bfriesen&#37;&#52;&#48;simple&#46;dallas&#46;tx&#46;us">bfriesen<span>&#64;</span>simple<span>&#46;</span>dallas<span>&#46;</span>tx<span>&#46;</span>us</a>&gt;</p>
 <blockquote>
 <ul class="simple">
+<li><p>magick/gem.c (Contrast): Visual Studio 17.4.3 does not like
+initializing a static constant with &quot;0.5+MagickEpsilon&quot; in
+/precise mode.</p></li>
+<li><p>magick/enhance.c (ContrastImagePixels): Visual Studio 17.4.3
+does not like initializing a static constant with
+&quot;0.5+MagickEpsilon&quot; in /precise mode.</p></li>
+</ul>
+</blockquote>
+<p>2022-12-25 Fojtik Jaroslav  &lt;<a class="reference external" href="mailto:JaFojtik&#37;&#52;&#48;yandex&#46;com">JaFojtik<span>&#64;</span>yandex<span>&#46;</span>com</a>&gt;</p>
+<blockquote>
+<ul class="simple">
+<li><p>webp/src/webp/types.h Need to include inttypes.h</p></li>
+<li><dl class="simple">
+<dt>jp2/src/libjasper/include/jasper/jas_types.h</dt>
+<dd><p>Fix missing _PFX_PTR in newer MSVC.</p>
+</dd>
+</dl>
+</li>
+</ul>
+</blockquote>
+<p>2022-12-25  Bob Friesenhahn  &lt;<a class="reference external" href="mailto:bfriesen&#37;&#52;&#48;simple&#46;dallas&#46;tx&#46;us">bfriesen<span>&#64;</span>simple<span>&#46;</span>dallas<span>&#46;</span>tx<span>&#46;</span>us</a>&gt;</p>
+<blockquote>
+<ul class="simple">
 <li><p>magick/symbols.h: Update symbol remappings which are enabled by
 PREFIX_MAGICK_SYMBOLS.  The only new symbol since the last release
 is IsEventLogged().</p></li>
diff -r 0b3d574d4ad5 -r 4c6cc25c174a www/NEWS.html
--- a/www/NEWS.html	Mon Dec 26 00:03:56 2022 +0100
+++ b/www/NEWS.html	Sun Dec 25 17:28:50 2022 -0600
@@ -203,7 +203,7 @@
 </ul>
 <p>Windows Delegate Updates/Additions:</p>
 <ul class="simple">
-<li><p>Update bundled libjasper to version 1.900.16.</p></li>
+<li><p>Update bundled libjasper to version 1.900.26.</p></li>
 <li><p>Update bundled libjpeg to version 9e.</p></li>
 <li><p>Update bundled libtiff to version 4.5.0 (but still compilable using MSVC2008!).</p></li>
 </ul>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.