summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTanner Gooding <tagoo@outlook.com>2018-12-04 05:51:50 -0800
committerStephen Toub <stoub@microsoft.com>2018-12-04 08:51:50 -0500
commit02274cb31cca8530480e6087564abe78a72d198d (patch)
tree958159d23a214c04550558bfb0c4447335e56b4c /src
parent248d54d6990677efcfcdeecd63539e72219c9d60 (diff)
downloadcoreclr-02274cb31cca8530480e6087564abe78a72d198d.tar.gz
coreclr-02274cb31cca8530480e6087564abe78a72d198d.tar.bz2
coreclr-02274cb31cca8530480e6087564abe78a72d198d.zip
Fixing the Vector64/128/256<T>.ToString(string) methods to pass `null` for the formatProvider (#21350)
Diffstat (limited to 'src')
-rw-r--r--src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector128_1.cs2
-rw-r--r--src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector256_1.cs2
-rw-r--r--src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector64_1.cs2
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
/// <exception cref="NotSupportedException">The type of the current instance (<typeparamref name="T" />) is not supported.</exception>
public string ToString(string format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, formatProvider: null);
}
/// <summary>Converts the current instance to an equivalent string representation using the specified format.</summary>
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
/// <exception cref="NotSupportedException">The type of the current instance (<typeparamref name="T" />) is not supported.</exception>
public string ToString(string format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, formatProvider: null);
}
/// <summary>Converts the current instance to an equivalent string representation using the specified format.</summary>
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
/// <exception cref="NotSupportedException">The type of the current instance (<typeparamref name="T" />) is not supported.</exception>
public string ToString(string format)
{
- return ToString(format, CultureInfo.CurrentCulture);
+ return ToString(format, formatProvider: null);
}
/// <summary>Converts the current instance to an equivalent string representation using the specified format.</summary>