[poppler] goo/JpegWriter.cc

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Aug 29 20:59:45 UTC 2018


 goo/JpegWriter.cc |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit de34900993bff73c8da651319027b2fa8c490172
Author: Ed Porras <ed at motologic.com>
Date:   Sun Aug 26 20:24:23 2018 +0200

    fix macOS compilation due to boolean define in jpeglib
    
    typedef enum { FALSE = 0, TRUE = 1 } boolean;

diff --git a/goo/JpegWriter.cc b/goo/JpegWriter.cc
index 16c97afe..26fa77a7 100644
--- a/goo/JpegWriter.cc
+++ b/goo/JpegWriter.cc
@@ -11,6 +11,7 @@
 // Copyright (C) 2013 Peter Breitenlohner <peb at mppmu.mpg.de>
 // Copyright (C) 2017, 2018 Albert Astals Cid <aacid at kde.org>
 // Copyright (C) 2018 Martin Packman <gzlist at googlemail.com>
+// Copyright (C) 2018 Ed Porras <ed at motologic.com>
 //
 //========================================================================
 
@@ -143,7 +144,7 @@ bool JpegWriter::init(FILE *f, int width, int height, int hDPI, int vDPI)
   }
 
   // Set whether to compute optimal Huffman coding tables
-  priv->cinfo.optimize_coding = priv->optimize;
+  priv->cinfo.optimize_coding = static_cast<boolean>(priv->optimize);
 
   // Get ready for data
   jpeg_start_compress(&priv->cinfo, TRUE);


More information about the poppler mailing list