summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2013-04-04 20:13:31 +0200
committerJay Berkenbilt <ejb@ql.org>2013-04-04 20:13:31 +0200
commit2d02b3cc3dc9c5e933f8ae2ccea03a5e1148c3d6 (patch)
tree6f14b294fbfc1554eab8acd12ad9465f6fcf36e7
parent8e636ea6806ab5d1f1d05bafd0a192dad06d42b6 (diff)
downloadqpdf-2d02b3cc3dc9c5e933f8ae2ccea03a5e1148c3d6.tar.zst
Add explicit int to double cast
-rw-r--r--libqpdf/QPDFObjectHandle.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libqpdf/QPDFObjectHandle.cc b/libqpdf/QPDFObjectHandle.cc
index 84db6003..373cd7bd 100644
--- a/libqpdf/QPDFObjectHandle.cc
+++ b/libqpdf/QPDFObjectHandle.cc
@@ -164,7 +164,7 @@ QPDFObjectHandle::getNumericValue()
double result = 0.0;
if (isInteger())
{
- result = getIntValue();
+ result = static_cast<double>(getIntValue());
}
else if (isReal())
{