Skip to content

Commit

Permalink
Avoid async method caching of a 0 decimal task
Browse files Browse the repository at this point in the history
Port CoreCLR #16588. This is under #if 0 in CoreRT right now, but it does not hurt to keep it in sync.
  • Loading branch information
jkotas authored and Konstantin Baladurin committed Mar 15, 2018
1 parent 71b2774 commit 8bbdab5
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,6 @@ internal static Task<TResult> GetTaskForResult(TResult result)
// - Boolean
// - Byte, SByte
// - Char
// - Decimal
// - Int32, UInt32
// - Int64, UInt64
// - Int16, UInt16
Expand Down Expand Up @@ -646,7 +645,6 @@ internal static Task<TResult> GetTaskForResult(TResult result)
(typeof(TResult) == typeof(Byte) && default(Byte) == (Byte)(object)result) ||
(typeof(TResult) == typeof(SByte) && default(SByte) == (SByte)(object)result) ||
(typeof(TResult) == typeof(Char) && default(Char) == (Char)(object)result) ||
(typeof(TResult) == typeof(Decimal) && default(Decimal) == (Decimal)(object)result) ||
(typeof(TResult) == typeof(Int64) && default(Int64) == (Int64)(object)result) ||
(typeof(TResult) == typeof(UInt64) && default(UInt64) == (UInt64)(object)result) ||
(typeof(TResult) == typeof(Int16) && default(Int16) == (Int16)(object)result) ||
Expand Down

0 comments on commit 8bbdab5

Please sign in to comment.