1
0
Fork 0
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:
Brian Fiete 2025-06-11 10:50:01 +02:00
parent e5eb8b38eb
commit a0bbd77c4c

View file

@ -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)