Code restyle.

This commit is contained in:
2021-01-17 22:53:57 +00:00
parent d61ef87a21
commit 727c9fbca0
9 changed files with 9 additions and 9 deletions

View File

@@ -132,7 +132,7 @@ namespace Aaru.CommonTypes.Extents
byte realEnd; byte realEnd;
if(run) if(run)
realEnd = (byte)((start + end) - 1); realEnd = (byte)(start + end - 1);
else else
realEnd = end; realEnd = end;

View File

@@ -132,7 +132,7 @@ namespace Aaru.CommonTypes.Extents
int realEnd; int realEnd;
if(run) if(run)
realEnd = (start + end) - 1; realEnd = start + end - 1;
else else
realEnd = end; realEnd = end;

View File

@@ -132,7 +132,7 @@ namespace Aaru.CommonTypes.Extents
long realEnd; long realEnd;
if(run) if(run)
realEnd = (start + end) - 1; realEnd = start + end - 1;
else else
realEnd = end; realEnd = end;

View File

@@ -132,7 +132,7 @@ namespace Aaru.CommonTypes.Extents
sbyte realEnd; sbyte realEnd;
if(run) if(run)
realEnd = (sbyte)((start + end) - 1); realEnd = (sbyte)(start + end - 1);
else else
realEnd = end; realEnd = end;

View File

@@ -132,7 +132,7 @@ namespace Aaru.CommonTypes.Extents
short realEnd; short realEnd;
if(run) if(run)
realEnd = (short)((start + end) - 1); realEnd = (short)(start + end - 1);
else else
realEnd = end; realEnd = end;

View File

@@ -132,7 +132,7 @@ namespace Aaru.CommonTypes.Extents
uint realEnd; uint realEnd;
if(run) if(run)
realEnd = (start + end) - 1; realEnd = start + end - 1;
else else
realEnd = end; realEnd = end;

View File

@@ -132,7 +132,7 @@ namespace Aaru.CommonTypes.Extents
ulong realEnd; ulong realEnd;
if(run) if(run)
realEnd = (start + end) - 1; realEnd = start + end - 1;
else else
realEnd = end; realEnd = end;

View File

@@ -132,7 +132,7 @@ namespace Aaru.CommonTypes.Extents
ushort realEnd; ushort realEnd;
if(run) if(run)
realEnd = (ushort)((start + end) - 1); realEnd = (ushort)(start + end - 1);
else else
realEnd = end; realEnd = end;

View File

@@ -60,7 +60,7 @@ namespace Aaru.CommonTypes
/// <summary>Information that does not find space in this struct</summary> /// <summary>Information that does not find space in this struct</summary>
public string Description; public string Description;
/// <summary>LBA of last partition sector</summary> /// <summary>LBA of last partition sector</summary>
public ulong End => (Start + Length) - 1; public ulong End => Start + Length - 1;
/// <summary>Name of partition scheme that contains this partition</summary> /// <summary>Name of partition scheme that contains this partition</summary>
public string Scheme; public string Scheme;