summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Ross <tross@apache.org>2008-12-01 19:29:54 +0000
committerTed Ross <tross@apache.org>2008-12-01 19:29:54 +0000
commit89b492cf4847ac930cd112ca16ae9e2786d4976f (patch)
tree20b1b01dc427ac4cd70c96024a75f48fc5de77e7
parent1f462050efab055d5552980b3d39c8f455f9006d (diff)
downloadqpid-python-89b492cf4847ac930cd112ca16ae9e2786d4976f.tar.gz
Replaced nonexistent type "double" with "float". In python, float
represents a double-precision floating point number. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@722191 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--python/qmf/console.py2
-rw-r--r--python/qpid/management.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/python/qmf/console.py b/python/qmf/console.py
index 9f5f621ba0..827a28d891 100644
--- a/python/qmf/console.py
+++ b/python/qmf/console.py
@@ -630,7 +630,7 @@ class Session:
elif typecode == 10: value.encode (codec) # REF
elif typecode == 11: codec.write_uint8 (int(value)) # BOOL
elif typecode == 12: codec.write_float (float(value)) # FLOAT
- elif typecode == 13: codec.write_double (double(value)) # DOUBLE
+ elif typecode == 13: codec.write_double (float(value)) # DOUBLE
elif typecode == 14: codec.write_uuid (value.bytes) # UUID
elif typecode == 15: codec.write_map (value) # FTABLE
elif typecode == 16: codec.write_int8 (int(value)) # S8
diff --git a/python/qpid/management.py b/python/qpid/management.py
index 4a87d2d533..477f3e8f2b 100644
--- a/python/qpid/management.py
+++ b/python/qpid/management.py
@@ -450,7 +450,7 @@ class managementClient:
elif typecode == 12: # FLOAT
codec.write_float (float (value))
elif typecode == 13: # DOUBLE
- codec.write_double (double (value))
+ codec.write_double (float (value))
elif typecode == 14: # UUID
codec.write_uuid (value)
elif typecode == 15: # FTABLE