Move declaration closer to usage.

This commit is contained in:
2022-11-13 19:16:14 +00:00
parent bc362e5d4a
commit 98d7ac3349
18 changed files with 64 additions and 65 deletions

View File

@@ -37,12 +37,13 @@ public abstract class ImageReadIssueTest
ulong doneSectors = 0;
var ctx = new Crc32Context();
ErrorNumber errno;
while(doneSectors < image.Info.Sectors)
{
byte[] sector;
ErrorNumber errno;
if(image.Info.Sectors - doneSectors >= SECTORS_TO_READ)
{
errno = image.ReadSectors(doneSectors, SECTORS_TO_READ, out sector);