Skip to content

Commit 3b53ad8

Browse files
author
Pierre-Alexandre Meyer
committed
decode: ZigZag decode small integers
Signed-off-by: Pierre-Alexandre Meyer <pierre@ning.com>
1 parent 17b6fc1 commit 3b53ad8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

c/src/smile_decode.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,8 @@ void smile_decode_value(u8** orig_data, struct content_handler* handler)
209209
} else if (*ip >= 0xC0 && *ip <= 0xDF) {
210210
handler->start_value();
211211
(*orig_data)++;
212+
ip++;
213+
handler->number_value(ZZ_DECODE(*ip & 0x1F));
212214
handler->end_value();
213215
// Misc; binary / text / structure markers
214216
} else {

0 commit comments

Comments
 (0)