mirror of
https://github.com/open-goal/jak-project.git
synced 2024-10-20 11:26:18 -04:00
Prevent overflow causing negative numbers to be positive
This commit is contained in:
parent
bf3344cdd3
commit
4429632618
|
@ -87,7 +87,7 @@ std::vector<IntegerParam> genIntegerTests(int numTests,
|
|||
tests.push_back(IntegerParam(dist6(rng), false, i));
|
||||
break;
|
||||
case 1:
|
||||
tests.push_back(IntegerParam(dist6(rng) * -1, false, i));
|
||||
tests.push_back(IntegerParam((s64)dist6(rng) * -1, false, i));
|
||||
break;
|
||||
case 2:
|
||||
tests.push_back(IntegerParam(dist6(rng), true, i));
|
||||
|
|
Loading…
Reference in a new issue