Remove ulong cast

This commit is contained in:
de4dot 2019-01-12 22:15:38 +01:00
parent e870c5a903
commit 316415412e
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ namespace Iced.Intel {
throw new ArgumentOutOfRangeException(nameof(index));
if (count < 0)
throw new ArgumentOutOfRangeException(nameof(count));
if ((ulong)(uint)index + (uint)count > (uint)data.Length)
if ((uint)index + (uint)count > (uint)data.Length)
throw new ArgumentOutOfRangeException(nameof(count));
currentPosition = index;
startPosition = index;