summaryrefslogtreecommitdiffstats
path: root/src/bool/lucky/luckyRead.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bool/lucky/luckyRead.c')
-rw-r--r--src/bool/lucky/luckyRead.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bool/lucky/luckyRead.c b/src/bool/lucky/luckyRead.c
index cf8e57d4..10c58170 100644
--- a/src/bool/lucky/luckyRead.c
+++ b/src/bool/lucky/luckyRead.c
@@ -56,7 +56,7 @@ static inline void Abc_TruthWriteHexDigit( FILE * pFile, int HexDigit )
static inline void Abc_TruthReadHex( word * pTruth, char * pString, int nVars )
{
int nWords = (nVars < 7)? 1 : (1 << (nVars-6));
- int k, Digit, nDigits = (nWords << 4);
+ int k, Digit, nDigits = (nVars < 7) ? (1 << (nVars-2)) : (nWords << 4);
char EndSymbol;
// skip the first 2 symbols if they are "0x"
if ( pString[0] == '0' && pString[1] == 'x' )