mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 20:42:21 +02:00
Merge pull request #1376 from disarray2077/patch-6
Fix arithmetic overflow error in Random
This commit is contained in:
commit
8f7f7cba21
1 changed files with 1 additions and 1 deletions
|
@ -115,7 +115,7 @@ namespace System
|
|||
if (++locINext >= 56) locINext = 1;
|
||||
if (++locINextp >= 56) locINextp = 1;
|
||||
|
||||
retVal = SeedArray[locINext] - SeedArray[locINextp];
|
||||
retVal = SeedArray[locINext] &- SeedArray[locINextp];
|
||||
SeedArray[locINext] = retVal;
|
||||
|
||||
inext = locINext;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue