From baf6ac1f18262cc9e87a2aaf2e3676fc5015cc48 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 18 Jan 2016 00:43:07 -0300 Subject: [PATCH] test --- iguana/SuperNET.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/iguana/SuperNET.c b/iguana/SuperNET.c index 416f34e4e..3932c1efb 100644 --- a/iguana/SuperNET.c +++ b/iguana/SuperNET.c @@ -131,9 +131,12 @@ int32_t SuperNET_json2bits(struct supernet_info *myinfo,uint8_t *serialized,int3 { uint8_t space[9999]; int32_t testlen = ramcoder_decompress(space,IGUANA_MAXPACKETSIZE,&compressed[3],numbits,seed2); - printf("testlen.%d\n",testlen); + printf("len.%d -> testlen.%d cmp.%d\n",len,testlen,memcmp(space,serialized,testlen)); + int32_t i; for (i=0; i<3+hconv_bitlen(numbits); i++) + printf("%02x ",compressed[i]); + printf("complen.%d\n",i+3); } - *complenp = (int32_t)hconv_bitlen(numbits); + *complenp = (int32_t)hconv_bitlen(numbits) + 3; return(len); }