mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Convert if to switch statement.
This commit is contained in:
@@ -225,11 +225,14 @@ public sealed class XZ : IFilter
|
||||
|
||||
int Decode(byte[] buf, int sizeMax, ref ulong num)
|
||||
{
|
||||
if(sizeMax == 0)
|
||||
return 0;
|
||||
switch(sizeMax)
|
||||
{
|
||||
case 0: return 0;
|
||||
case > 9:
|
||||
sizeMax = 9;
|
||||
|
||||
if(sizeMax > 9)
|
||||
sizeMax = 9;
|
||||
break;
|
||||
}
|
||||
|
||||
num = (ulong)(buf[0] & 0x7F);
|
||||
var i = 0;
|
||||
|
||||
Reference in New Issue
Block a user