diff options
author | iphydf <iphydf@users.noreply.github.com> | 2016-11-21 02:24:42 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2016-11-21 02:25:11 +0000 |
commit | 656f0b911268bf4cf9218e690f3da70d0a1f349a (patch) | |
tree | 33cc59dba7128138cc58ede4199fa102814e65f6 /testing | |
parent | 551660a64ac0f2cbe12d92a2d8a3a40d8d36afaf (diff) |
Support float32 and float64 in msgpack type printer.
Diffstat (limited to 'testing')
-rw-r--r-- | testing/hstox/util.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/testing/hstox/util.c b/testing/hstox/util.c index 9461596c..9b0ad161 100644 --- a/testing/hstox/util.c +++ b/testing/hstox/util.c | |||
@@ -17,8 +17,11 @@ char const *type_name(msgpack_object_type type) | |||
17 | case MSGPACK_OBJECT_NEGATIVE_INTEGER: | 17 | case MSGPACK_OBJECT_NEGATIVE_INTEGER: |
18 | return "negative_integer"; | 18 | return "negative_integer"; |
19 | 19 | ||
20 | case MSGPACK_OBJECT_FLOAT: | 20 | case MSGPACK_OBJECT_FLOAT32: |
21 | return "float"; | 21 | return "float32"; |
22 | |||
23 | case MSGPACK_OBJECT_FLOAT64: | ||
24 | return "float64"; | ||
22 | 25 | ||
23 | case MSGPACK_OBJECT_STR: | 26 | case MSGPACK_OBJECT_STR: |
24 | return "str"; | 27 | return "str"; |