summaryrefslogtreecommitdiff
path: root/msgpack/_msgpack.pyx
diff options
context:
space:
mode:
Diffstat (limited to 'msgpack/_msgpack.pyx')
-rw-r--r--msgpack/_msgpack.pyx2
1 files changed, 1 insertions, 1 deletions
diff --git a/msgpack/_msgpack.pyx b/msgpack/_msgpack.pyx
index 7c07cde..cbdcfc5 100644
--- a/msgpack/_msgpack.pyx
+++ b/msgpack/_msgpack.pyx
@@ -118,7 +118,7 @@ cdef class Packer:
intval = o
msgpack_pack_long_long(&self.pk, intval)
elif isinstance(o, float):
- fval = 9
+ fval = o
msgpack_pack_double(&self.pk, fval)
elif isinstance(o, str):
rawval = o