Convert valid zero-bit scalars to BigInteger zero

AI-generated by OpenAI Codex.
Remove AI-generated unit test changes from the submitted diff per Ghidra contributor guidance.
This commit is contained in:
Rudy Celekli
2026-10-13 10:59:37 -04:00
parent 918d44ebc2
commit e2cfa56c5b
@@ -109,6 +109,9 @@ public class Scalar {
* @return new BigInteger representation of the value
*/
public BigInteger getBigInteger() {
if (bitLength == 0) {
return BigInteger.ZERO;
}
int signum = (signed && testBit(bitLength - 1)) ? -1 : 1;
// Get magnitude