mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 18:29:37 +02:00
fixed bug in OpBehaviorIntSrem::evaluteBinary
This commit is contained in:
parent
a25b7d2178
commit
c047b7433f
1 changed files with 1 additions and 1 deletions
|
@ -507,7 +507,7 @@ uintb OpBehaviorIntSrem::evaluateBinary(int4 sizeout,int4 sizein,uintb in1,uintb
|
||||||
intb mod = in2;
|
intb mod = in2;
|
||||||
sign_extend(val,8*sizein-1); // Convert inputs to signed values
|
sign_extend(val,8*sizein-1); // Convert inputs to signed values
|
||||||
sign_extend(mod,8*sizein-1);
|
sign_extend(mod,8*sizein-1);
|
||||||
intb sres = in1 % in2; // Do the remainder
|
intb sres = val % mod; // Do the remainder
|
||||||
zero_extend(sres,8*sizeout-1); // Convert back to unsigned
|
zero_extend(sres,8*sizeout-1); // Convert back to unsigned
|
||||||
return (uintb)sres;
|
return (uintb)sres;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue