summaryrefslogtreecommitdiff
path: root/cpp/object.cpp
diff options
context:
space:
mode:
authorfrsyuki <frsyuki@5a5092ae-2292-43ba-b2d5-dcab9c1a2731>2009-02-15 09:09:59 +0000
committerfrsyuki <frsyuki@5a5092ae-2292-43ba-b2d5-dcab9c1a2731>2009-02-15 09:09:59 +0000
commit05b63f6c87d45ea2e1aa8a4d9f8bf665a50591a5 (patch)
treed1ed0cbccbf7a572bd13473e3b0a8e8d5751e588 /cpp/object.cpp
parent8be25a7f3216007dd3e9561076bd2e7cf3945b90 (diff)
downloadmsgpack-python-05b63f6c87d45ea2e1aa8a4d9f8bf665a50591a5.tar.gz
C++: operator<< (std::ostream&, const object&): fix missing double support
git-svn-id: file:///Users/frsyuki/project/msgpack-git/svn/x@83 5a5092ae-2292-43ba-b2d5-dcab9c1a2731
Diffstat (limited to 'cpp/object.cpp')
-rw-r--r--cpp/object.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpp/object.cpp b/cpp/object.cpp
index 45cfb5f..52b6ad0 100644
--- a/cpp/object.cpp
+++ b/cpp/object.cpp
@@ -41,6 +41,10 @@ std::ostream& operator<< (std::ostream& s, const object o)
s << o.via.i64;
break;
+ case type::DOUBLE:
+ s << o.via.dec;
+ break;
+
case type::RAW:
(s << '"').write(o.via.ref.ptr, o.via.ref.size) << '"';
break;