summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--WhisperNet/ExtensionMethods.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/WhisperNet/ExtensionMethods.cs b/WhisperNet/ExtensionMethods.cs
index 1bb594b..f77cb30 100644
--- a/WhisperNet/ExtensionMethods.cs
+++ b/WhisperNet/ExtensionMethods.cs
@@ -1,4 +1,5 @@
using System.Diagnostics;
+using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using Whisper.Internal;
@@ -15,6 +16,7 @@ namespace Whisper
}
/// <summary>Convert language into a short ID string, like <c>"en"</c></summary>
+ [SkipLocalsInit]
public static string getCode( this eLanguage lang )
{
unsafe