Update SoftFallback.cs

This commit is contained in:
LDj3SNuD 2018-11-29 03:03:19 +01:00 committed by GitHub
parent b825844a65
commit 00e4d868b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -207,13 +207,13 @@ namespace ChocolArm64.Instructions
return 0UL;
}
long roundConst = 1L << (shift - 1);
ulong roundConst = 1UL << (shift - 1);
ulong add = value + (ulong)roundConst;
ulong add = value + roundConst;
if (eSize == 64)
{
if ((add < value) && (add < (ulong)roundConst))
if ((add < value) && (add < roundConst))
{
if (shift == 64)
{