diff options
| author | frsyuki <frsyuki@users.sourceforge.jp> | 2010-06-01 07:13:47 +0900 |
|---|---|---|
| committer | frsyuki <frsyuki@users.sourceforge.jp> | 2010-06-01 07:13:47 +0900 |
| commit | d42ecccf6f201eb92b6c04b0dde1b86a8861e58e (patch) | |
| tree | 8a2f8fd3998cc685a3e4b12755337e8845457512 /cpp/src | |
| parent | 5a92c861e377c7db3b240dd3661feed0b58f85e0 (diff) | |
| download | msgpack-python-d42ecccf6f201eb92b6c04b0dde1b86a8861e58e.tar.gz | |
cpp: msgpack::unpack returns void
Diffstat (limited to 'cpp/src')
| -rw-r--r-- | cpp/src/msgpack/unpack.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/src/msgpack/unpack.hpp b/cpp/src/msgpack/unpack.hpp index 56ce0f6..e1617ef 100644 --- a/cpp/src/msgpack/unpack.hpp +++ b/cpp/src/msgpack/unpack.hpp @@ -160,7 +160,7 @@ private: }; -static bool unpack(unpacked* result, +static void unpack(unpacked* result, const char* data, size_t len, size_t* offset = NULL); @@ -312,7 +312,7 @@ inline void unpacker::remove_nonparsed_buffer() } -inline bool unpack(unpacked* result, +inline void unpack(unpacked* result, const char* data, size_t len, size_t* offset) { msgpack::object obj; @@ -326,12 +326,12 @@ inline bool unpack(unpacked* result, case UNPACK_SUCCESS: result->get() = obj; result->zone() = z; - return false; + return; case UNPACK_EXTRA_BYTES: result->get() = obj; result->zone() = z; - return true; + return; case UNPACK_CONTINUE: throw unpack_error("insufficient bytes"); |
