[poppler] poppler/GfxState.h

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Apr 1 20:02:20 UTC 2022


 poppler/GfxState.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit ea4beb12266344ab149e9124f5792d871c85b21d
Author: Albert Astals Cid <aacid at kde.org>
Date:   Fri Apr 1 21:58:43 2022 +0200

    Silence MSVC warning

diff --git a/poppler/GfxState.h b/poppler/GfxState.h
index 13496d28..b9eb30dc 100644
--- a/poppler/GfxState.h
+++ b/poppler/GfxState.h
@@ -17,7 +17,7 @@
 // Copyright (C) 2006, 2007 Jeff Muizelaar <jeff at infidigm.net>
 // Copyright (C) 2006 Carlos Garcia Campos <carlosgc at gnome.org>
 // Copyright (C) 2009 Koji Otani <sho at bbr.jp>
-// Copyright (C) 2009-2011, 2013, 2016-2021 Albert Astals Cid <aacid at kde.org>
+// Copyright (C) 2009-2011, 2013, 2016-2022 Albert Astals Cid <aacid at kde.org>
 // Copyright (C) 2010 Christian Feuersänger <cfeuersaenger at googlemail.com>
 // Copyright (C) 2011 Andrea Canciani <ranma42 at gmail.com>
 // Copyright (C) 2011-2014, 2016, 2020 Thomas Freitag <Thomas.Freitag at alfa.de>
@@ -122,7 +122,7 @@ static inline double colToDbl(GfxColorComp x)
 
 static inline unsigned char dblToByte(double x)
 {
-    return (x * 255.0);
+    return static_cast<unsigned char>(x * 255.0);
 }
 
 static inline double byteToDbl(unsigned char x)


More information about the poppler mailing list