From 02274cb31cca8530480e6087564abe78a72d198d Mon Sep 17 00:00:00 2001 From: Tanner Gooding Date: Tue, 4 Dec 2018 05:51:50 -0800 Subject: Fixing the Vector64/128/256.ToString(string) methods to pass `null` for the formatProvider (#21350) --- .../shared/System/Runtime/Intrinsics/Vector128_1.cs | 2 +- .../shared/System/Runtime/Intrinsics/Vector256_1.cs | 2 +- .../shared/System/Runtime/Intrinsics/Vector64_1.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector128_1.cs b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector128_1.cs index da73f87e70..72cbc8253c 100644 --- a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector128_1.cs +++ b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector128_1.cs @@ -323,7 +323,7 @@ namespace System.Runtime.Intrinsics /// The type of the current instance () is not supported. public string ToString(string format) { - return ToString(format, CultureInfo.CurrentCulture); + return ToString(format, formatProvider: null); } /// Converts the current instance to an equivalent string representation using the specified format. diff --git a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector256_1.cs b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector256_1.cs index 3731698308..7020b3c8ac 100644 --- a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector256_1.cs +++ b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector256_1.cs @@ -325,7 +325,7 @@ namespace System.Runtime.Intrinsics /// The type of the current instance () is not supported. public string ToString(string format) { - return ToString(format, CultureInfo.CurrentCulture); + return ToString(format, formatProvider: null); } /// Converts the current instance to an equivalent string representation using the specified format. diff --git a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector64_1.cs b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector64_1.cs index b19054917b..be524700ad 100644 --- a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector64_1.cs +++ b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector64_1.cs @@ -270,7 +270,7 @@ namespace System.Runtime.Intrinsics /// The type of the current instance () is not supported. public string ToString(string format) { - return ToString(format, CultureInfo.CurrentCulture); + return ToString(format, formatProvider: null); } /// Converts the current instance to an equivalent string representation using the specified format. -- cgit v1.2.3