mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-19 00:20:25 +02:00
Assert range fix
This commit is contained in:
parent
e5eb8b38eb
commit
a0bbd77c4c
1 changed files with 2 additions and 3 deletions
|
@ -16,7 +16,6 @@ namespace System
|
|||
{
|
||||
using System;
|
||||
using System.Globalization;
|
||||
using System.Diagnostics.Contracts;
|
||||
using System.Diagnostics;
|
||||
using System.Threading;
|
||||
|
||||
|
@ -197,7 +196,7 @@ namespace System
|
|||
==============================================================================*/
|
||||
public virtual int32 Next(int32 minValue, int32 maxValue)
|
||||
{
|
||||
Debug.Assert(minValue < maxValue);
|
||||
Debug.Assert(minValue <= maxValue);
|
||||
|
||||
int64 range = (int64)maxValue - minValue;
|
||||
if (range <= Int32.MaxValue)
|
||||
|
@ -218,7 +217,7 @@ namespace System
|
|||
==============================================================================*/
|
||||
public virtual int64 Next(int64 minValue, int64 maxValue)
|
||||
{
|
||||
Debug.Assert(minValue < maxValue);
|
||||
Debug.Assert(minValue <= maxValue);
|
||||
|
||||
uint64 range = (uint64)(maxValue - minValue);
|
||||
if (range <= Int32.MaxValue)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue