[poppler] [PATCH/poppler-0.22] splash/Splash.cc: add cast to fix build for --enable-fixedpoint
Andreas Müller
schnitzeltony at googlemail.com
Sun May 12 09:21:49 PDT 2013
| Splash.cc:1497:30: error: conversion from 'SplashCoord {aka FixedPoint}' to 'Guchar {aka unsigned char}' is ambiguous
| Splash.cc:1497:30: note: candidates are:
| In file included from SplashMath.h:27:0,
| from Splash.cc:44:
| ../goo/FixedPoint.h:45:3: note: FixedPoint::operator int()
| ../goo/FixedPoint.h:43:3: note: FixedPoint::operator double()
| ../goo/FixedPoint.h:41:3: note: FixedPoint::operator float()
Signed-off-by: Andreas Müller <schnitzeltony at googlemail.com>
---
splash/Splash.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/splash/Splash.cc b/splash/Splash.cc
index cd0ec72..6630370 100644
--- a/splash/Splash.cc
+++ b/splash/Splash.cc
@@ -1494,7 +1494,7 @@ inline void Splash::drawAALine(SplashPipe *pipe, int x0, int x1, int y) {
#endif
if (t != 0) {
- pipe->shape = aaGamma[t];
+ pipe->shape = (int)aaGamma[t];
(this->*pipe->run)(pipe);
updateModX(x);
updateModY(y);
--
1.7.4.4
More information about the poppler
mailing list