Commit 15702828 authored by Brendan Moran's avatar Brendan Moran
Browse files

Minor error in get_handler

parent debfa49b
......@@ -256,7 +256,7 @@ static int get_handler(
if (cbor_type != CBOR_TYPE_BSTR >> 5) {
continue;
}
cbor_type = cbor_sub & CBOR_TYPE_MASK;
cbor_type = (cbor_sub & CBOR_TYPE_MASK) >> 5;
}
if ((*h)->type == cbor_type) {
return CBOR_ERR_NONE;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment