diff --git a/iguana/exchanges/LP_privkey.c b/iguana/exchanges/LP_privkey.c index df94f78e1..fc7684df6 100644 --- a/iguana/exchanges/LP_privkey.c +++ b/iguana/exchanges/LP_privkey.c @@ -484,10 +484,10 @@ int32_t LP_jpg_process(int32_t *capacityp,char *inputfname,char *outputfname,uin val = row_ptrs[compnum][0][blocknum][i]; if ( val < -8 || val > 8 ) { - if ( *capacityp < required ) + if ( (*capacityp) < required ) { if ( (val & 1) != 0 ) - decoded[*capacityp >> 3] |= (1 << (*capacityp&7)); + decoded[(*capacityp) >> 3] |= (1 << ((*capacityp)&7)); } (*capacityp)++; }