a few worthless nitpicks
This commit is contained in:
parent
722358c1b1
commit
a118763409
|
@ -46,7 +46,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
return;
|
||||
}
|
||||
|
||||
ThreadPool.QueueUserWorkItem((s) => CheckInternal());
|
||||
ThreadPool.QueueUserWorkItem(s => CheckInternal());
|
||||
}
|
||||
|
||||
public static bool IsNewVersionAvailable =>
|
||||
|
@ -108,9 +108,14 @@ namespace BizHawk.Client.EmuHawk
|
|||
ulong version = 0;
|
||||
for (int i = 0; i < split.Length; i++)
|
||||
{
|
||||
if (!UInt16.TryParse(split[i], out var versionPart)) return 0;
|
||||
if (!ushort.TryParse(split[i], out var versionPart))
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
version |= (ulong)versionPart << (48 - (i * 16));
|
||||
}
|
||||
|
||||
return version;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue