From 6c74b42c09688936ed0c7b1fb683e4824ba908ce Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 24 Jan 2018 20:56:25 +0400 Subject: [PATCH] Test --- iguana/exchanges/LP_privkey.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/iguana/exchanges/LP_privkey.c b/iguana/exchanges/LP_privkey.c index 89ec7516e..7afcb0c4d 100644 --- a/iguana/exchanges/LP_privkey.c +++ b/iguana/exchanges/LP_privkey.c @@ -482,7 +482,8 @@ int32_t LP_jpg_process(int32_t *capacityp,char *inputfname,char *outputfname,uin for (i=0; i limit ) + if ( val == 0 || val == 1 ) + //if ( val < -limit || val > limit ) { if ( (*capacityp) < required ) { @@ -498,7 +499,7 @@ int32_t LP_jpg_process(int32_t *capacityp,char *inputfname,char *outputfname,uin } } } - printf(" capacity %d required.%d power2.%d limit.%d\n",*capacityp,required,power2,limit); + //printf(" capacity %d required.%d power2.%d limit.%d\n",*capacityp,required,power2,limit); if ( *capacityp > required && outputfname != 0 && outputfname[0] != 0 ) { if ((output_file = fopen(outputfname, WRITE_BINARY)) == NULL) { @@ -520,7 +521,8 @@ int32_t LP_jpg_process(int32_t *capacityp,char *inputfname,char *outputfname,uin for (i=0; i limit ) + // if ( val < -limit || val > limit ) + if ( val == 0 || val == 1 ) { val &= ~1; if ( (emit < required && GETBIT(data,emit) != 0) || (emit >= required && (rand() & 1) != 0) )