Skip to content

Commit 4d1e02b

Browse files
committed
Remove issus -
1 parent de972c7 commit 4d1e02b

3 files changed

Lines changed: 2 additions & 4 deletions

File tree

src/Device.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ namespace BlockIO
1010
{
1111
public class Device : AbstractDevice
1212
{
13-
private DeviceType _deviceType;
1413
private List<AbstractPartition> m_partitions => [];
1514
protected DeviceType m_deviceType;
1615

@@ -30,7 +29,7 @@ public Device(string devicePath, AbstractParser parser, bool bInitialisOnConstru
3029

3130
public override string Description => "GPT Device Handler";
3231

33-
public override DeviceType DeviceType => _deviceType;
32+
public override DeviceType DeviceType => m_deviceType;
3433

3534
public override void Close()
3635
{

src/GPT/GPTParser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public override List<AbstractPartition> parse(AbstractDevice device, uint sector
156156

157157

158158
// Partition zur Liste hinzufügen
159-
m_partitions.Add(new GPTPartition(device, name, typeGuid, uniqueGuid, firstLBA, lastLBA, (int)m_sectorSize));
159+
m_partitions.Add(new GPTPartition(device, name, typeGuid, uniqueGuid, (ulong)firstLBA, (ulong)lastLBA, (int)m_sectorSize));
160160
}
161161
PartitionCount = m_partitions.Count;
162162

src/Interface/AbstractDevice.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ public virtual void Initialis()
7171
SectorCount = GetMaxSectorCount(m_devicePath);
7272
}
7373

74-
}
7574
public abstract void Reset();
7675

7776
public abstract void Close();

0 commit comments

Comments
 (0)