From 61bfbdb26efb40e9c87eb64981e5259e14adee25 Mon Sep 17 00:00:00 2001 From: itn3000 Date: Wed, 21 Dec 2022 14:10:52 +0900 Subject: [PATCH] fix compilation error --- .../Compressors/Xz/Filters/BlockFilter.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/SharpCompress/Compressors/Xz/Filters/BlockFilter.cs b/src/SharpCompress/Compressors/Xz/Filters/BlockFilter.cs index 20b8b286..cf0477c0 100644 --- a/src/SharpCompress/Compressors/Xz/Filters/BlockFilter.cs +++ b/src/SharpCompress/Compressors/Xz/Filters/BlockFilter.cs @@ -21,15 +21,15 @@ public abstract class BlockFilter : ReadOnlyStream private static readonly Dictionary> FilterMap = new Dictionary< FilterTypes, - Type + Func > { - { FilterTypes.ARCH_x86_FILTER, () => new X86Filter() }, - { FilterTypes.ARCH_PowerPC_FILTER, () => new PowerPCFilter() }, - { FilterTypes.ARCH_IA64_FILTER, () => new IA64Filter() }, - { FilterTypes.ARCH_ARM_FILTER, () => new ArmFilter() }, - { FilterTypes.ARCH_ARMTHUMB_FILTER, () => new ArmThumbFilter() }, - { FilterTypes.ARCH_SPARC_FILTER, () => new SparcFilter() }, + { FilterTypes.ARCH_x86_FILTER, (Func)(() => new X86Filter()) }, + { FilterTypes.ARCH_PowerPC_FILTER, (Func)(() => new PowerPCFilter()) }, + { FilterTypes.ARCH_IA64_FILTER, (Func)(() => new IA64Filter()) }, + { FilterTypes.ARCH_ARM_FILTER, (Func)(() => new ArmFilter()) }, + { FilterTypes.ARCH_ARMTHUMB_FILTER, (Func)(() => new ArmThumbFilter()) }, + { FilterTypes.ARCH_SPARC_FILTER, (Func)(() => new SparcFilter()) }, { FilterTypes.LZMA2, () => new Lzma2Filter() } };