diff options
author | Jay Berkenbilt <ejb@ql.org> | 2013-04-04 20:13:31 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2013-04-04 20:13:31 +0200 |
commit | 2d02b3cc3dc9c5e933f8ae2ccea03a5e1148c3d6 (patch) | |
tree | 6f14b294fbfc1554eab8acd12ad9465f6fcf36e7 /libqpdf/QPDFObjectHandle.cc | |
parent | 8e636ea6806ab5d1f1d05bafd0a192dad06d42b6 (diff) | |
download | qpdf-2d02b3cc3dc9c5e933f8ae2ccea03a5e1148c3d6.tar.zst |
Add explicit int to double cast
Diffstat (limited to 'libqpdf/QPDFObjectHandle.cc')
-rw-r--r-- | libqpdf/QPDFObjectHandle.cc | 2 |
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()) { |