-Fixed deserializing large nullable UInt64 values

This commit is contained in:
James Newton-King
2015-02-25 20:44:07 +13:00
parent dd611a9ca5
commit 376ab4dbb5
2 changed files with 23 additions and 1 deletions
@@ -862,7 +862,7 @@ namespace Newtonsoft.Json.Serialization
#if !(PORTABLE || PORTABLE40 || NET35 || NET20)
if (value is BigInteger)
return ConvertUtils.FromBigInteger((BigInteger)value, targetType);
return ConvertUtils.FromBigInteger((BigInteger)value, contract.NonNullableUnderlyingType);
#endif
// this won't work when converting to a custom IConvertible