summaryrefslogtreecommitdiff
path: root/src/ecbor.c
diff options
context:
space:
mode:
authorrimio <vasi.vilvoiu@gmail.com>2018-03-02 00:04:17 +0200
committerrimio <vasi.vilvoiu@gmail.com>2018-03-02 00:04:17 +0200
commit760860f3a34873e00cbf2ccb473f78cf3933a2f2 (patch)
treee9bed480f87a69225b5715ab8b6c7c9610292494 /src/ecbor.c
parent3d821056f53edcf6fc8786f0d156fa56720a0c5a (diff)
Added support for boolean and null types; added test case answers
Diffstat (limited to 'src/ecbor.c')
-rw-r--r--src/ecbor.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ecbor.c b/src/ecbor.c
index b2580d8..2093366 100644
--- a/src/ecbor.c
+++ b/src/ecbor.c
@@ -138,6 +138,10 @@ ecbor_get_value (ecbor_item_t *item, void *value)
case ECBOR_TYPE_FP64:
*((double *)value) = item->value.fp64;
break;
+
+ case ECBOR_TYPE_BOOL:
+ *((uint64_t *)value) = item->value.uinteger;
+ break;
default:
return ECBOR_ERR_INVALID_TYPE;