mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-12 01:53:07 +03:00
some fixes to bigint library
git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@175 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
This commit is contained in:
@ -1128,7 +1128,7 @@ static int find_max_exp_index(bigint *biexp)
|
||||
}
|
||||
|
||||
shift >>= 1;
|
||||
} while (--i != 0);
|
||||
} while (i-- != 0);
|
||||
|
||||
return -1; /* error - must have been a leading 0 */
|
||||
}
|
||||
@ -1151,7 +1151,7 @@ static int exp_bit_is_one(bigint *biexp, int offset)
|
||||
shift <<= 1;
|
||||
}
|
||||
|
||||
return test & shift;
|
||||
return (test & shift) != 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_BIGINT_CHECK_ON
|
||||
|
Reference in New Issue
Block a user