diff options
Diffstat (limited to 'cpp/object.cpp')
-rw-r--r-- | cpp/object.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/cpp/object.cpp b/cpp/object.cpp index 276732c..45cfb5f 100644 --- a/cpp/object.cpp +++ b/cpp/object.cpp @@ -81,7 +81,7 @@ std::ostream& operator<< (std::ostream& s, const object o) default: // FIXME - s << "#<UNKNOWN " << (uint16_t)o.type << ">" << std::endl; + s << "#<UNKNOWN " << (uint16_t)o.type << ">"; } return s; } @@ -113,7 +113,7 @@ bool operator==(const object x, const object y) for(object* px(x.via.container.ptr), * const pxend(x.via.container.ptr + x.via.container.size), * py(y.via.container.ptr); - px != pxend; ++px, ++py) { + px < pxend; ++px, ++py) { if(*px != *py) { return false; } } return true; @@ -124,7 +124,7 @@ bool operator==(const object x, const object y) for(object* px(x.via.container.ptr), * const pxend(x.via.container.ptr + x.via.container.size*2), * py(y.via.container.ptr); - px != pxend; ++px, ++py) { + px < pxend; ++px, ++py) { if(*px != *py) { return false; } } return true; @@ -135,10 +135,5 @@ bool operator==(const object x, const object y) } -// FIXME -//template <typename Stream> -//const object& operator>> (const object& v, packer<Stream>& o); - - } // namespace msgpack |