summaryrefslogtreecommitdiff
path: root/cpp/include
diff options
context:
space:
mode:
authorDarryl L. Pierce <mcpierce@apache.org>2014-04-14 18:08:25 +0000
committerDarryl L. Pierce <mcpierce@apache.org>2014-04-14 18:08:25 +0000
commit353c7f5a24e268fc3344ec14a7d25286cfd891eb (patch)
tree751177f03a7e5f1b912dc4d78803e8300001c15a /cpp/include
parentc1be6b490bd61c655aecb9eefa0277fdd0c23d1e (diff)
downloadqpid-python-353c7f5a24e268fc3344ec14a7d25286cfd891eb.tar.gz
QPID-5696: Floats losing their fractional part.
This is due to doubles be cast as floats when passed into the Variant type causing the loss of value. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1587267 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/include')
-rw-r--r--cpp/include/qpid/swig_perl_typemaps.i2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/include/qpid/swig_perl_typemaps.i b/cpp/include/qpid/swig_perl_typemaps.i
index 6c0e6d8bac..e1fa908f9f 100644
--- a/cpp/include/qpid/swig_perl_typemaps.i
+++ b/cpp/include/qpid/swig_perl_typemaps.i
@@ -45,7 +45,7 @@
return qpid::types::Variant((int64_t) SvIV(value));
}
else if (SvNOK(value)) {
- return qpid::types::Variant((float)SvNV(value));
+ return qpid::types::Variant((double)SvNV(value));
}
else if (SvPOK(value)) {
STRLEN len;