summaryrefslogtreecommitdiff
path: root/src/classlibnative
diff options
context:
space:
mode:
authorJan Kotas <jkotas@microsoft.com>2019-06-18 14:17:18 -0700
committerGitHub <noreply@github.com>2019-06-18 14:17:18 -0700
commit20b4bdd1fe553b8751a2a908cc748b0346808023 (patch)
tree843089888071535b6222af15d631304374192ce2 /src/classlibnative
parent342327afd528c9e5d199a78e84793cbd916aadfd (diff)
downloadcoreclr-20b4bdd1fe553b8751a2a908cc748b0346808023.tar.gz
coreclr-20b4bdd1fe553b8751a2a908cc748b0346808023.tar.bz2
coreclr-20b4bdd1fe553b8751a2a908cc748b0346808023.zip
Relax signed/unsigned checks in Array.Copy to match other places (#25209)
Disable failing tests. Also enable tests for changes that propagated through the system. Fixes dotnet/corefx#38535
Diffstat (limited to 'src/classlibnative')
-rw-r--r--src/classlibnative/bcltype/arraynative.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/classlibnative/bcltype/arraynative.cpp b/src/classlibnative/bcltype/arraynative.cpp
index 605cd2905b..3d2d5b2e3d 100644
--- a/src/classlibnative/bcltype/arraynative.cpp
+++ b/src/classlibnative/bcltype/arraynative.cpp
@@ -332,8 +332,9 @@ ArrayNative::AssignArrayEnum ArrayNative::CanAssignArrayTypeNoGC(const BASEARRAY
// Copying primitives from one type to another
if (CorTypeInfo::IsPrimitiveType_NoThrow(srcElType) && CorTypeInfo::IsPrimitiveType_NoThrow(destElType))
{
- if (srcElType == destElType)
+ if (GetNormalizedIntegralArrayElementType(srcElType) == GetNormalizedIntegralArrayElementType(destElType))
return AssignWillWork;
+
if (InvokeUtil::CanPrimitiveWiden(destElType, srcElType))
return AssignPrimitiveWiden;
else