From 656f0b911268bf4cf9218e690f3da70d0a1f349a Mon Sep 17 00:00:00 2001 From: iphydf Date: Mon, 21 Nov 2016 02:24:42 +0000 Subject: [PATCH] Support float32 and float64 in msgpack type printer. --- testing/hstox/util.c | 7 +++++-- 1 file 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) case MSGPACK_OBJECT_NEGATIVE_INTEGER: return "negative_integer"; - case MSGPACK_OBJECT_FLOAT: - return "float"; + case MSGPACK_OBJECT_FLOAT32: + return "float32"; + + case MSGPACK_OBJECT_FLOAT64: + return "float64"; case MSGPACK_OBJECT_STR: return "str";