mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-10-16 20:52:08 +08:00
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:
+3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user