Move declarations closer to usage.

This commit is contained in:
2023-10-05 02:37:04 +01:00
parent 214d210979
commit 13a2bfdaf4
6 changed files with 7 additions and 8 deletions

View File

@@ -169,12 +169,12 @@ public class TeleDiskLzh
/// <returns>Number of decompressed bytes</returns>
public int Decode(out byte[] buf, int len) /* Decoding/Uncompressing */
{
short c;
buf = new byte[len];
int count; // was an unsigned long, seems unnecessary
for(count = 0; count < len;)
{
short c;
if(_tdctl.Bufcnt == 0)
{
if((c = DecodeChar()) < 0)