commit c456ea4fa839d76c2cd1dc77c0c1495b5a20a04c
parent 6298d5b593aaa96ef6deba1817a58ceea5328f26
Author: Remy Noulin <loader2x@gmail.com>
Date: Sat, 26 Oct 2019 20:33:20 +0200
fix bug when deserializing smallBytes elements
netSerial.c | 4 ++--
package.yml | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/netSerial.c b/netSerial.c
@@ -4616,7 +4616,7 @@ internal void dictNetDeserial(sDictt **dict, u8 **data, contextt *ctx, bool pack
B = allocSBytes();
count = varintToUint((u8**)data);
- sBytesPushBuffer(&B, data, count);
+ sBytesPushBuffer(&B, *data, count);
*data += count;
sDictPushTiny(dict, key, (smallt *) B);
// stop unpacking when packCount == 0
@@ -5095,7 +5095,7 @@ internal void arrayNetDeserial(sArrayt **array, u8 **data, contextt *ctx, bool p
B = allocSBytes();
count = varintToUint((u8**)data);
- sBytesPushBuffer(&B, data, count);
+ sBytesPushBuffer(&B, *data, count);
*data += count;
sArrayPushTiny(array, (smallt *) B);
// stop unpacking when packCount == 0
diff --git a/package.yml b/package.yml
@@ -1,6 +1,6 @@
---
name: netSerial
- version: 0.0.11
+ version: 0.0.12
description: network serializer with binary format more compact than the default serializer in smallJson
bin: ./netSerial.c
repository: