summaryrefslogtreecommitdiff
path: root/src/os/object/outputstream.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/os/object/outputstream.cc')
-rw-r--r--src/os/object/outputstream.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/os/object/outputstream.cc b/src/os/object/outputstream.cc
index 31b0da4..f257fa5 100644
--- a/src/os/object/outputstream.cc
+++ b/src/os/object/outputstream.cc
@@ -98,6 +98,18 @@ OutputStream & OutputStream::operator<<(long long number)
return *this;
}
+OutputStream & OutputStream::operator<<(double number)
+{
+ *this << (float)number;
+ return *this;
+}
+
+OutputStream & OutputStream::operator<<(float number)
+{
+ this->printf_float(number);
+ return *this;
+}
+
OutputStream & OutputStream::operator<<(void *pointer)
{
unsigned short temp_base = base;