poppler/GfxState.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit ea4beb12266344ab149e9124f5792d871c85b21d Author: Albert Astals Cid <[email protected]> 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 <[email protected]> // Copyright (C) 2006 Carlos Garcia Campos <[email protected]> // Copyright (C) 2009 Koji Otani <[email protected]> -// Copyright (C) 2009-2011, 2013, 2016-2021 Albert Astals Cid <[email protected]> +// Copyright (C) 2009-2011, 2013, 2016-2022 Albert Astals Cid <[email protected]> // Copyright (C) 2010 Christian Feuersänger <[email protected]> // Copyright (C) 2011 Andrea Canciani <[email protected]> // Copyright (C) 2011-2014, 2016, 2020 Thomas Freitag <[email protected]> @@ -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)
