We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf0c434 commit 6767057Copy full SHA for 6767057
Ghidra/Framework/Generic/src/main/java/ghidra/util/NumericUtilities.java
@@ -250,7 +250,7 @@ public final static long bigIntegerToUnsignedLong(BigInteger value) {
250
* @return aligned value
251
*/
252
public static long getUnsignedAlignedValue(long unsignedValue, long alignment) {
253
- if (unsignedValue % alignment == 0) {
+ if (alignment == 0 || unsignedValue % alignment == 0) {
254
return unsignedValue;
255
}
256
boolean negative = unsignedValue < 0;
0 commit comments