From cb730a334d8106bfda91fedb111a75f2c12da434 Mon Sep 17 00:00:00 2001 From: Timofey Solomko Date: Wed, 21 Jul 2021 19:47:05 +0300 Subject: [PATCH] [LZMA] Change LZMAConstants from struct to enum --- Sources/LZMA/LZMAConstants.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Sources/LZMA/LZMAConstants.swift b/Sources/LZMA/LZMAConstants.swift index 8b051662..5e2fe5e7 100644 --- a/Sources/LZMA/LZMAConstants.swift +++ b/Sources/LZMA/LZMAConstants.swift @@ -5,7 +5,8 @@ import Foundation -struct LZMAConstants { +enum LZMAConstants { + static let topValue: UInt32 = 1 << 24 static let numBitModelTotalBits = 11 static let numMoveBits = 5 @@ -19,4 +20,5 @@ struct LZMAConstants { static let numFullDistances = 1 << (endPosModelIndex >> 1) static let matchMinLen = 2 // LZMAConstants.numStates << LZMAConstants.numPosBitsMax = 192 + }