From 2d02b3cc3dc9c5e933f8ae2ccea03a5e1148c3d6 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Thu, 4 Apr 2013 14:13:31 -0400 Subject: Add explicit int to double cast --- libqpdf/QPDFObjectHandle.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(getIntValue()); } else if (isReal()) { -- cgit v1.2.3-54-g00ecf