librlp

C library for the Recursive Length Prefix (RLP) serialization format
git clone git://git.defalsify.org/librlp.git
Log | Files | Refs | LICENSE

commit c3be720692ce21d02445d5cb40e8438fc8202762
parent 23d3f33a813bb905909412bb16276450e554a4f1
Author: nolash <dev@holbrook.no>
Date:   Tue, 15 Jun 2021 13:55:19 +0200

Remove double increment on single number

Diffstat:
Msrc/encode.c | 1-
1 file changed, 0 insertions(+), 1 deletion(-)

diff --git a/src/encode.c b/src/encode.c @@ -22,7 +22,6 @@ int rlp_add(rlp_encoder_t *encoder, int len, const char *data) { if (len == 1 && v < 56) { *(encoder->ptr) = v; encoder->ptr++; - encoder->size++; } else { v = (char)*data; if (len < 56) {