Merge pull request #10680 from Pokechu22/dsp-int-overflow-comment
DSPInterpreter: Fix typo in isOverflow comment
This commit is contained in:
commit
8051c21028
|
@ -23,7 +23,7 @@ constexpr bool isCarrySubtract(u64 val, u64 result)
|
|||
|
||||
constexpr bool isOverflow(s64 val1, s64 val2, s64 res)
|
||||
{
|
||||
// val1 > 0 and val1 > 0 yet res < 0, or val1 < 0 and val2 < 0 yet res > 0.
|
||||
// val1 > 0 and val2 > 0 yet res < 0, or val1 < 0 and val2 < 0 yet res > 0.
|
||||
return ((val1 ^ res) & (val2 ^ res)) < 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue